Hi there!
I've noticed a bug that only happens in iOS 17+ where I have a sheet that automatically gets dismissed once it's opened. I'm using .sheet(isPresented:). I've done plenty of troubleshooting using print statements and the boolean isn't getting reset to false until after the sheet gets dismissed.
The odd part is that I have this same sheet other places in my app and it's not getting dismissed.
I was thinking my view is being redrawn and that sets my boolean back to false (which is it's initial state). But it's strange this doesn't seem to be the case. Like I said, using print statements I was able to determine that the bool isn't being set to false until after the sheet dismisses.
I've tried instead of having this @State bool, making it a binding bool that gets passed into my view as false and that doesn't help.
I can't post the code because my company won't let me. Is anyone else having this experience? I see other posts about iOS 17 sheet issues but it doesn't quite seem to be the same thing I'm experiencing.
I just wanted to bring this to Apple's attention. This completely broke my apps functionality.