I sometimes forget the steps to test state restoration with Xcode and think my code is broken. We have to press Home on the simulator before stopping the app for SceneStorage to save the value.
Wrote a short post with the steps for a quick reference: https://nilcoalescing.com/blog/TestingSceneStorageStatePersistenceInXcode/
#iOSDev

Comments