Hi thank you for responding, I've added the crash log and some code below hopefully those are more helpful.
Thank you
Post
Replies
Boosts
Views
Activity
This is what I thought as well. The storeDomain is just normal string value which is nothing special about.... So I'm unsure how this affects the string interpolation
I've posted the relevant code in a separate answer
One thing to note is the domain could be initialised from an NSString instance since the class is accessible from Objc. But I'm not sure how this makes a difference. I tried manually init with a nil NSString instance and the initialiser just set the domain variable to empty string which doesn't cause a crash
Did you find any workaround?
I assume your app is targeting iOS 16+. If you need to support iOS 15 you will need to have 2 sets of code 1 for iOS 15 using NavigationView and 1 for iOS 16 using NavigationStack?
What I don't understand is, it happens to 1 of my flow but doesn't happen to the other flow where I use the same approach.
I'm able to get it crash on device a couple of times with debugger attached but it does not get caught with any breakpoint and nothing useful with the stack trace...
Depending how you present the .sheet just call the code before you set the binding of isPresented to false or set the binding Item to nil