DTLocalNotification

Custom control that makes displaying in-app notifications easier, cleaner and more efficient.

MIT License

Stars
33
Committers
1

DTLocalNotification

Screenshots

Usage

In order to present a local notification, it is required to have a DTLocalNotification instance before asking the presenter to show it:

let view = ExampleView(data: data)
let notification = DTLocalNotification(view: view)

DTLocalNotificationPresenter.shared.showNotification(notification, completion: nil)
let notification = CustomLocalNotificationViewController(data: data)

DTLocalNotificationPresenter.shared.showNotification(notification, completion: nil)

As you can see, there are two different ways to present a local notification. The second way is usually more efficient when you want to present local notification view in a custom DTNotificationViewController(custom view layout, status bar style, backgroundColor, etc).

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 9.0+

Installation

DTLocalNotification is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DTLocalNotification'

Author

Tung Vo, [email protected]

License

DTLocalNotification is available under the MIT license. See the LICENSE file for more info.

Package Rankings
Top 12.18% on Cocoapods.org
Badges
Extracted from project README
Version License Platform
Related Projects