SwiftUI Location Permissions View
A SwiftUI View for introducing and initiating a system request for location access from the user.
Usage
LocationPermissionsView(
interactor: .init(
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
LocationControllerto request system location access authorization, or respond to gps location updates viaCLLocationManagerDelegate.