If the user leaves the app (and clears it from memory) during the onboarding process, the next time they start the app they will be taken to the main page (not the onboarding screen). This crashes the app because UserDefaults such as occupation are not set. The onboarding screen should be presented until it is complete.
If the user leaves the app (and clears it from memory) during the onboarding process, the next time they start the app they will be taken to the main page (not the onboarding screen). This crashes the app because
UserDefaults
such as occupation are not set. The onboarding screen should be presented until it is complete.