Post

Replies

Boosts

Views

Activity

Comment on iOS 16 crash on dismiss sheet with navigationView
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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on iOS 16 crash on dismiss sheet with navigationView
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...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on iOS 16 crash on dismiss sheet with navigationView
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on iOS 16 crash on dismiss sheet with navigationView
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?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on iOS 16 crash on dismiss sheet with navigationView
Did you find any workaround?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on DefaultStringInterpolation Could not allocate memory
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
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Comment on DefaultStringInterpolation Could not allocate memory
I've posted the relevant code in a separate answer
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Comment on DefaultStringInterpolation Could not allocate memory
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
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Comment on DefaultStringInterpolation Could not allocate memory
Hi thank you for responding, I've added the crash log and some code below hopefully those are more helpful. Thank you
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21