Documentation

SwiftUI Photo Permissions View

A SwiftUI View for introducing and initiating a system request for photo library access from the user.

PhotoPermissionsView with a light color scheme. A SwiftUI Starter Kit Component.
PhotoPermissionsView with a light color scheme.
PhotoPermissionsView with a dark color scheme. A SwiftUI Starter Kit Component.
PhotoPermissionsView with a dark color scheme.

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 PhotoController to request system permissions for photo library read and write access, using the PHPhotoLibrary system framework.