Post

Replies

Boosts

Views

Activity

Comment on SwiftUI "pushing the same view controller instance" Exception
In this case, it might be that you are using the same variable twice. That could mean you are activating isPresented from 2 locations in your code. If you change your code to use 2 separate variables, it shouldn't crash. For example, use $showView3FromView1 and $showView3FromView2 in their respective views.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24
Comment on SwiftUI "pushing the same view controller instance" Exception
I tried adding those print statements to onAppear and onDisappear for the view that was being navigated to, but neither printed.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Comment on Image classification works in preview, but not simulator
I found the same thing... breaks in the simulator, but runs well on a device.
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Replies
Boosts
Views
Activity
Nov ’22