Your question is iOS View Controller Lifecycle. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Can you explain the lifecycle of an iOS view controller and how you handle memory management?
Cover the purpose and ordering of key UIViewController callbacks, including view loading, appearance, layout, disappearance, and deallocation. Explain how ARC, weak, unowned, delegates, and closures affect ownership, and give one practical example of avoiding a retain cycle.
Scope: Swift and UIKit on current iOS versions.