A toast framework writen in swift for iOS with very simple interface.
- One toast is an
Operation
object,ToastCenter
manages all toast with an operation queue. - simple interface.
- Customizable
- UIAccessibility: VoiceOver support.
iOS 9 +
pod 'Toasty-Swift'
Toast(text: "hello toasty." ,position: .center, superView: self.view).show()
or
self.view.makeToast(text: "hello toasty.",position: .top)
You can remove all toasts:
ToastCenter.default.cancelAll()
Or cancel a toast:
Toast(text: "hello toasty." ,position: .center, superView: self.view).cancel()
By default, VoiceOver with UIAccessibility is enabled. To disable it:
ToastCenter.default.supportVisionAccessibility = false
See LICENSE file for more info.