This package lets you easily create different alerts in SwiftUI with the call of a single function.
As this is my first package that I make publicly available, I’m happy to hear your feedback. Let me know if you enjoy using the package, have troubles or ideas for improvements.
AlertWizard 🧙🏻♂️
This package lets you easily create different alerts in SwiftUI with the call of a single function.
As this is my first package that I make publicly available, I’m happy to hear your feedback. Let me know if you enjoy using the package, have troubles or ideas for improvements.
Requirements
macOS 10.15+, iOS 13+
Install
Add
https://github.com/henribredt/AlertWizard
in the “Swift Package Manager” tab in Xcode.Setup
Add a
.alert(...)
modifier to aView
as shown in the example code.AlertWizard is a singleton, access using
AlertWizard.shared
Usage
AlertWizard can show two diffrent kinds of alerts
Info alert
Display a simple multipurpose alert that provieds a dismiss button with no action associated
Choice alert
Display a multipurpose alert that provides a primary and a secondary button with completion handlers
Documentation
This package is well documented and includes a .html documentation generated using Jazzy. Open the
index.html
in any browser to view it.About
This package was created by Henri Bredt (@henricreates) and published under the MIT license. See LICENSE for details.