Contents

presentLimitedLibraryPicker(from:)

Prompts the user to update their limited library selection.

Declaration

func presentLimitedLibraryPicker(from controller: UIViewController)

Parameters

  • controller:

    The view controller from which to present the limited library picker.

Discussion

If the user enabled limited library access using requestAuthorization(for:handler:), use this method to present the limited library picker so they can update their selection. If the user hasn’t enabled limited library access mode for your app, calling this method does nothing. Use this method when disabling the automatic limited library alert prompt. By default, the system automatically prompts the user to update their limited library selection once per app life cycle. To suppress the prompt, add PHPhotoLibraryPreventAutomaticLimitedAccessAlert to your app’s Info.plist file.

Any changes the user applies to the limited library selection trigger a PHPhotoLibraryChangeObserver update.

See Also

Presenting the Limited Library Picker