UIImagePickerController and PHPickerViewController bug in iOS 15 when used in SwiftUI

I have created a small project to show this bug...

https://github.com/oliverfoggin/BrokenImagePickers/tree/main

When run on device the app allows you to tap a button to show a UIImagePickerController or a PHPickerViewController (depending on the button).

If you just select a picture from there then everything works as expected.

But as soon as you enter into the search bar the UIImagePickerController will just crash back to the app. And the PHPickerViewController will display an error "Unable to Load Photos".

I'm running iOS 15 on an iPhone 11 Pro Max if that changes anything.

Would just like to know if I'm doing anything wrong with this. Or if I should file a radar for it?

Thanks

I created a replica app in UIKit to check if this happens in UIKit also. I couldn't replicate the bug at all. https://github.com/oliverfoggin/UIKit-Image-Pickers

UIImagePickerController and PHPickerViewController bug in iOS 15 when used in SwiftUI
 
 
Q