SwiftUI Notification Permissions View
A SwiftUI View for introducing and initiating a push notification system permissions request to the user.
Usage
(
NotificationPermissionsView: .init(
interactor: {},
didSelectEnable: {}
didSelectSkip)
)
Features
- Supports light and dark device color schemes by default.
- Supports font scaling via Dynamic Type.
- Supports offline usage in SwiftUI Previews for easy debugging and testing.
Notes
- Use this view in tandem with
NotificationController
to request permission authorization from the operating system.