What would be the correct way of calling PHPhotoLibrary's presentLimitedLibraryPicker method from SwiftUI?
The method requires a UIViewController, which I don't have in SwiftUI. I have tried to use UIViewControllerRepresentable, and it works, but the result is that two View Controllers are presented, the one I create with UIViewControllerRepresentable, and the Limited Library Picker.
Thanks a lot in advance!
The method requires a UIViewController, which I don't have in SwiftUI. I have tried to use UIViewControllerRepresentable, and it works, but the result is that two View Controllers are presented, the one I create with UIViewControllerRepresentable, and the Limited Library Picker.
Thanks a lot in advance!