you need to use startAccessingSecurityScopedResource():
[https://developer.apple.com/documentation/swiftui/view/fileimporter(ispresented:allowedcontenttypes:allowsmultipleselection:oncompletion:))
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: