Limit PhotosPicker selectable items to only Albums (SwiftUI)

53 Views Asked by At

Is there any way to use the PhotosUI PhotosPicker api in SwiftUI, but limit the user to picking only a single album, not individual photos or even multiple individual photos? The .photosPickerDisabledCapabilities modifier does not contain an option for this, so is my only option to use the UIKit api inside a UIViewControllerRepresentable?

1

There are 1 best solutions below

1
On

Yes your best option in this case would indeed be to use the UIKit API inside a UIViewControllerRepresentable.