Toast view using swift.
Dir demo ---> swift v1.2
Dir toast ---> swift v2.0
download this repo and import file.
-
Single toast view
self.view.makeToast(message: msg) -
Toast with title
self.view.makeToast(message: msg, duration: duration, position: pos, title: subject) -
Toast with image, title...
self.view.makeToast(message: msg, duration: duration, position: pos, title: subject, image: image) -
Show and hide activity
self.view.makeToastActivity() self.view.hideToastActivity() -
Show activity with message
self.view.makeToastActivityWithMessage(message: msg)
Type: single and title


Type: image and activity


Type: activity with message

Toast-Swift is available under the MIT license. See the LICENSE file for more info.