This is something I have some gripes about. In the old days before backgrounding, pressing the home button literally ends the process. So implementing state preservation and restoration is a must for any non-toy apps.
With backgrounding, apps can linger in the background for a while before being killed. And now many iOS apps don't implement state restoration at all, including built-in apps like Photos. Quick experiment to verify: I open a particular photo, quit the app, reopen the app, and I don't see that photo any more. Instead I see the general timeline view or album view.
I hate this and wish more iOS devs would implement these things correctly. Docs here: https://developer.apple.com/documentation/uikit/view_control...