79491195

Date: 2025-03-07 03:36:50
Score: 4.5
Natty:
Report link

I am unable to comment due to the lack of reputation points, but I tested this on iOS 16.7.10 (iPhone X) and I cannot reproduce your issue. Could you update your post with more information, such as where it was produced (debug or release), the phone and iOS version you used?

I'll edit this answer with a solution after you provide us with more info. In the meantime, I can only give you a potential answer to this:

VStack {
  Button("Test SWIFTUI") {
    sShowing = true
  }
}
.fileImporter(isPresented: $sShowing, allowedContentTypes: [.item]) {result in
  alertText = String(describing: result)
  showAlert = true
  sShowing = false // Maybe this is what you need? Setting it back to false might address your problem
}
Reasons:
  • Blacklisted phrase (1): Could you update
  • Blacklisted phrase (1): to comment
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1.5): reputation points
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: UnstoppableWil