{"repo":"danielsaidi/SystemNotification","free":true,"listed":false,"github":"https://github.com/danielsaidi/SystemNotification","clone":"git clone https://github.com/danielsaidi/SystemNotification.git","description":"Mimic the native system notification in SwiftUI.","language":"Swift","stars":935,"topics":["notification","swiftui","toast","swift","system-notification"],"license":"MIT","category":"mobile-apps","readme_excerpt":"SystemNotification SystemNotification is a SwiftUI library that lets you mimic the native iOS system notification that is presented when you toggle silent mode, connect your AirPods, etc. System notifications can be styled and customized. You can use a native-looking SystemNotificationMessage view as the content view, or any custom view. Installation SystemNotification can be installed with the Swift Package Manager: Getting started With SystemNotification, you can add a system notification to any view just as you add a sheet , alert and fullScreenCover , by applying a systemNotification view modifier (preferably to the application root view). State-based notifications take a boolean state binding and a view builder: Context-based notifications just take a SystemNotificationContext instance and can then show many different notifications with a single modifier: The SystemNotificationMessage view lets you easily mimic a native notification view, with an icon, title and text, but you can use any custom view as the notification body. See the online [getting started guide][Getting-Started] for more information. Documentation The online [documentation][Documentation] has more information, articles, code examples, etc. Demo Application The Demo folder has an app that lets you explore the library. Support My Work You can [become a sponsor][Sponsors] to help me dedicate more time on my various [open-source tools][OpenSource]. Every contribution, no matter the size, makes a real differ","default_branch":null,"files":null,"tree":[],"storefront":"/r/danielsaidi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/danielsaidi/SystemNotification/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}