A framework to display Toast Alerts in IOS.
Add the following line to your Cartfile:
github "estampworld/ios-toast-alerts"
Run carthage update
Add the pod to your Podfile:
pod 'toastalerts'
And then run:
pod install
Show a Toast Alert with message and icon using ToastAlertView Object
let toastAlertView = ToastAlertView(message: "Hey!", image: UIImage(named: "Cat Icon")!)
toastAlertView.show()
//Toast Alert View with Time Dissmis Only
let toastAlertView = ToastAlertView(message: "4 Seconds", image: UIImage(systemName: "flame")!, hideWithType: .time(time: 4))
toastAlertView.show()
//Custom EW Toast Alert View
let toastAlertView = ToastAlertView()
toastAlertView.message = "Example"
toastAlertView.image = UIImage(named: "img1")!
toastAlertView.show()
//toastAlertView.dismiss() to Hide
Eduardo Irias, creator.
Toast Alert Views is available under the MIT license. See the LICENSE file for more info.
link |
Stars: 15 |
Last commit: 2 years ago |
Enjoy
ヽ( ˘з˘ )ゝ
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics