Toast view using swift.
CocoaPods:
pod 'ToastSwift'
Or download this repo.
-
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.