FWIW, the other sample project provided by Apple works after updating it to swift 6: https://developer.apple.com/documentation/photokit/implementing_an_inline_photos_picker
I took that project and changed it slowly to integrate into my project and it works.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: