TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2016 |
SPMSupports SPM | ✗ |
public protocol UpperNotificationViewType: class {
/**
- parameter manualDismissClosure: Call this closure to dismiss the notification view
*/
func didPrepare(dismissClosure: () -> Void)
func willAppear()
func didAppear()
func willDisappear()
func didDisappear()
}
class MyNotification: UpperNotificationViewType { … }
public protocol UpperNotificationAnimatorType {
func applyPresentAnimation<T where T: UpperNotificationViewType, T: UIView>(notificationView notificationView: T, completion: () -> Void)
func applyDismissAnimation<T where T: UpperNotificationViewType, T: UIView>(notificationView notificationView: T, completion: () -> Void)
}
struct MyAnimator: UpperNotificationViewType { ... }
let notificationController = UpperNotificationController()
let notification = NotificationContext<SampleNotificationView> {
SampleNotificationView()
}
notificationController.deliver(notification: notification, animator: Animator())
iOS 8.0+
muukii, [email protected]
UpperNotificationController is available under the MIT license. See the LICENSE file for more info.