strong-references
How can identify strong reference cycles in Swift?
The method for finding strong reference cycles is the same in Swift as in Objective-C. You’d run the app from Xcode, exercise the app sufficiently to manifest the cycle, and then tap on the “debug memory graph” button (). You can then select an unreleased object in the panel on the left, and it will … Read more