Post

Replies

Boosts

Views

Activity

SwiftUI Dark/Light Mode Toggle causes View switch? + Sign in With Apple Certificate Revoke
Hi all - As the title states, I'm hitting a bug on my physical device where if I navigate to a different view using a navigationLink (that's not embedded in a navigationView, since it's a button that initiates the change), and then try and toggle from dark mode to light mode or vice versa, it goes back to the previous view. This is kind of an issue since when I have a screen like Sign in with Apple, my app asks for additional details like their birthday. If they toggle the switch from light to dark on that screen, and then hit sign in with apple again, it assumes they already have an account, so they would have no birthday stored on the database. So I guess this is a two-for-one question: The toggle from light to dark/dark to light causes my app to navigate a view back. Any idea on this? How do you revoke a Sign in With Apple response if the user decides to back out of it? Obviously the user can go into settings and do it but if they did it on accident then I want them to go to the birthday input screen rather than just assume that it's already a fully-filled out account.
0
0
917
May ’21