For the More Curious: Scene State Transitions
Logging the scene state transition delegate methods is a good way to get a better understanding of the various scene state transitions. You can make these changes in the same copy of the project that you used for the last section or in your main LootLogger project; they do not conflict with code in later chapters.
In SceneDelegate.swift, implement four of these methods so that they print out their names. If the template created these methods for you, update them as shown in Listing 13.15. If not, you will need to add them.
Rather than hardcoding the name of the method in the call to print(), use the #function expression. At compile time, the #function expression will evaluate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access