To run the example project, clone the repo, and run pod install
from the Example directory first.
appetize.io demo : [ here ]
It's notification view creator (uiwindow).
just send your custom view and then some setups, and call show().
it's' very comfortable notificationview.
NotificationView.create(YourNotiView("hello")).show()
NotificationView.create(YourNotiView("hello")).setupDuration(present: 0.3, dismiss: 0.3, expose: 3).show()
NotificationView.create(YourNotiView("hello")).whenTouch { view in
print("third notification touched.")
}.show()
NotificationView.create(YourNotiView("hello")).whenCompletion { completed in
print("hide completion.")
}.show()
// you can choose setup methods.
NotificationView.create(YourNotiView("hello"))
.setupDuration(present: 0.3, dismiss: 0.3, expose: 3)
.whenTouch { view in
print("third notification touched.")
}.whenCompletion { completed in
print("hide completion.")
}.show()
//find last.
NotificationView.find(YourNotiView.self)?.hide()
//find all type.
NotificationView.findAll(YourNotiView.self)?.forEach({ notiview in
// do something.
})
- above ios 8.0
- swift 3.0
- with cocoapods
is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PGNotificationView"
ipagong, [email protected]
PGNotificationView is available under the MIT license. See the LICENSE file for more info.