DTLocalNotification
Custom control that makes displaying in-app notifications easier, cleaner and more efficient.
Install / Use
/learn @tungvoduc/DTLocalNotificationREADME
DTLocalNotification
Screenshots
<p align="left" > <img src="Screenshots/screenshot1.png" width=350 hspace=20> <img src="Screenshots/screenshot2.png" width=350> <p/>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).
<br/> DTLocalNotificationPresenter and DTInteractiveLocalNotificationPresenter are two default presenters for presenting notification. In case you want to change the behaviors or animations or add more functionalities, simply subclass one of these two classes and make your own implementation.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, tung98.dn@gmail.com
License
DTLocalNotification is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
