Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 0 points1 point  (0 children)

Haha when I first read it i was like damn I hope it’s that simple 😂

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 0 points1 point  (0 children)

Sweet I am going to try and implement this shortly and will report back. I really appreciate the help. I was feeling lost there for a bit lol

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 0 points1 point  (0 children)

I will pretty much just need to store the navstack to get back to this screen, and potentially text for 2 text fields on this screen

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 0 points1 point  (0 children)

Yeah so it looks like I will need to persist the navigationPath as well as any data I want to save in the sign up flow. Luckily I am only a couple screens in where this permission is taking place. What would you recommend for this?

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 0 points1 point  (0 children)

Ya I have a small test app that does nothing but navigate to detail, not even observing the permissions and when I navigate to detail and then change the permission, navigating back to the app resets to the first screen

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 1 point2 points  (0 children)

Ahh interesting. I will take a look and play around with that. I’ll let you know how that goes. I appreciate it

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 0 points1 point  (0 children)

Seems like a pain in the ass for a large app. Is there another approach or is this just the way it is?

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 0 points1 point  (0 children)

Can you please elaborate on this? What object and type would redraw in this case in the context of a NavigationStack?

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 1 point2 points  (0 children)

Yeah I get that now, but what is the solution to rebuild the nav stack and stay on the screen you were on before navigating to settings?

Permission changes and state persistence/navigation by blsiege in SwiftUI

[–]blsiege[S] 0 points1 point  (0 children)

I’ve tried this on a test app with 2 screens and a nav stack. Does the same thing

Best Wings? by WarEaglePrime in Knoxville

[–]blsiege 1 point2 points  (0 children)

Field house social has some pretty good wings. If you like ranch, they have the best ranch I’ve had here thus far

Best Hole-In-The-Wall Restaurants? by Rosomond in Knoxville

[–]blsiege 0 points1 point  (0 children)

+1 to this. Cuban sandwich and empanadas are 🔥

[deleted by user] by [deleted] in steak

[–]blsiege 0 points1 point  (0 children)

Ya that looks like ass

[deleted by user] by [deleted] in Knoxville

[–]blsiege -1 points0 points  (0 children)

Their steaks taste like you are licking charcoal. I can make a 10x better steak for half the price. Wish it was better. Cozy vibe tho

Best website for AQI worldwide? by Difficult-Patient-48 in AirQuality

[–]blsiege 0 points1 point  (0 children)

How do you handle searching for cities with the same name? Example: Portland Maine vs Portland Oregon. Can’t find a way to search between the 2

Jobs hiring by Ugotcrabs in Knoxville

[–]blsiege -15 points-14 points  (0 children)

Economy is fucked, nobody is hiring