SwiftUI Photo Permissions View
A SwiftUI View for introducing and initiating a system request for photo library access from the user.
Usage
PhotoPermissionsView(
interactor: .init(
didSelectAllow: {},
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.May the force be with you.
Notes
- Use
PhotoControllerto request system permissions for photo library read and write access, using thePHPhotoLibrarysystem framework.