Created
October 15, 2019 14:18
-
-
Save uc-compass-bot/d3137019b1bd5563098b950e317ce6f6 to your computer and use it in GitHub Desktop.
Catch Retain Cycles In Navigation Controller Subclass 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class NavigationController: UINavigationController { | |
deinit { | |
viewControllers.forEach { MemoryChecker.verifyDealloc(object: $0) } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment