I'm using segue and unwind segue for screen transitions, but after many transitions, the process gets heavier and doesn't work properly. Do you have any countermeasures or improvements?
Top Screen ➡ se(segue) Menu Screen ➡ g(segue) Game Screen (spritekit) ➡ g(segue) Result Screen
➡ ((unwind segment) I'm thinking of a transition method called menu screen.
It doesn't become heavy due to screen transition, but there are still instances that should be released due to screen transition, and as a result, it becomes heavy.
You might want to include a process to check if an instance is released in the program, or check for memory leaks in Instruments.
© 2025 OneMinuteCode. All rights reserved.