SwiftUI Photo Permissions View
A SwiftUI View for introducing and initiating a system request for photo library access from the user.
Usage
(
PhotoPermissionsView: .init(
interactor: {},
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
PhotoController
to request system permissions for photo library read and write access, using thePHPhotoLibrary
system framework.