stylish modern and flat Notification view that is very simple to integrate and very easy to use.
only manual way is available now. all you have to do is to add KiwiNotificationView.swift and KiwiNotificationView.xib files to your project and you are ready to do ;)
xcode 8 swift 3
let kiwiView = KiwiNotificationView.instanceFromNib()
kiwiView.showNotification(view: self.view, message: "Congrats, that's all you need to make me work!", state: kiwiStates.success)
for custom back ground color
kiwiView.showNotification(view: self.view, message: "Congrats, that's all you need to make me work!", color : UIColor.red)
by deafult all durations to show up is 0.5 if need to change the duration
func showNotification(view : UIView, message : String, color : UIColor?, state : kiwiStates, duration : Double)
Kiwi notification states
enum kiwiStates : Int {
case success = 0
case cuteSuccess = 1
case error = 2
case warning = 3
case custom = 4
}
- Ahmed Hegazi
- adding actions to the notification view.
- adding icons to the view.
- documentation
please feel free to open an issue if you find one or want something to be added also, let me know if you used it ;)