Posts

Post not yet marked as solved
0 Replies
268 Views
When I run my SwiftUI app on a physical iPhone, the app will randomly crash and print this to the console: warning: failed to set breakpoint site at 0x... for breakpoint -6.1: error: 9 sending the breakpoint request I don't understand because I don't have any breakpoints set. This is one of 5 with different memory addresses and different breakpoint names (-6.2, -7.1, etc.). This only happens on the iPhone and happens even when I don't touch anything and just open the app and let it sit.
Posted
by gpost.
Last updated
.
Post not yet marked as solved
1 Replies
324 Views
Is it possible for a NavigationLink to go to a different page while also having a swipe gesture do something? I'm working on a to-do app and my thought is to let the swipe gesture delete the item, and a tap on the item just take you to the edit page. Now, tapping on the item does nothing with the gesture modifier applied because it's always just listening for a swipe. Any workarounds?
Posted
by gpost.
Last updated
.
Post not yet marked as solved
0 Replies
168 Views
I'm getting a runtime error stating: "Accessing StateObject's object without being installed on a View. This will create a new instance each time." XCode is showing this information next to a line in FirestoreQuery referring to wrapped values. It's happening when I try to get a User object from Firebase in order to display a user profile. Here's the code for the ProfileView, ProfileViewModel, and FirebaseQuery. I've bolded the section of FirestoreQuery that seems to be the issue. I've already tried just reverting back to an old commit and building along each line to try to pinpoint the problem. Both when I did this and the first time it occurred, when I tried to cmd + z to before the error occurred, the error was still there. I'm not sure if it's somehow the way that I'm structuring the Query, but I'm pretty new to Swift and Firebase, so I followed a tutorial for that part. I don't have enough characters to post the code here, so if you have any idea of what the problem might be without that context, please let me know!
Posted
by gpost.
Last updated
.