SystemNotification

0.8.0

SystemNotification is a Swift SDK that helps you mimic the native iOS system notification in SwiftUI.
danielsaidi/SystemNotification

What's New

2024-03-06T20:14:41Z

0.8

✨ New features

  • SystemNotification now supports visionOS.

💥 Breaking changes

  • SystemNotification now requires Swift 5.9.

SystemNotification Logo

Version Swift 5.9 Swift UI MIT License Twitter: @danielsaidi Mastodon: @danielsaidi@mastodon.social

About SystemNotification

SystemNotification is a Swift SDK that helps you mimic the native iOS system notification in SwiftUI.

The result can look like this, or completely different:

This system notification can be styled and customized to great extent. You can also use completely custom views.

Installation

SystemNotification can be installed with the Swift Package Manager:

https://github.com/danielsaidi/SystemNotification.git

Getting started

After adding SystemNotification to your project, you can add a system notification to a view hierarchy just as you add sheet, alert and fullScreenModal:

import SystemNotification

struct MyView: View {

    var body: some View {
        Text("Hello, world")
            .systemNotification(...)
    }
}

You can use both state- and context and message-based notifications and style your notifications to great extent.

For more information, please see the getting started guide.

Documentation

The online documentation has more information, articles, code examples, etc.

Demo Application

The demo app lets you explore the library on iOS and macOS. To try it out, just open and run the Demo project.

Support my work

You can sponsor me on GitHub Sponsors or reach out for paid support, to help support my open-source projects.

Your support makes it possible for me to put more work into these projects and make them the best they can be.

Contact

Feel free to reach out if you have questions or if you want to contribute in any way:

License

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

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Mar 28 2024 07:57:12 GMT-0900 (Hawaii-Aleutian Daylight Time)