Closed mrcoolbiz closed 6 years ago
Any update for this bug ? I still can't fix this memory leak.
Nope, you want to try fix it?
@mrcoolbiz Are you sure about that leak? Can you post a screenshot of Instruments session? I tried to setup a minimal app to reproduce the problem based on your description in my fork...can you look at it and suggest changes to create a leak? (it's in a fix/memory_leak branch)
I made this for long time ago. But I think this leak was solved in new updated version. You can try to test again.
should this be closed then?
i make a constraint group. So I can replace them with other constrain later. But after create group, the instruments just notice about ConstraintGroup has constraints with error: _ContiguousArrayStorage
Even I try to remove contraint in viewDidDisappear by your function constrain(clear: ...) and also, by remove all constraints by view.removeConstraints(view.constraints)
My code: class MainController: BaseController {
....
func drawNavBar() { navBar = UIView(frame: .zero) navBar.backgroundColor = themes[mTheme]?.tone view.addSubview(navBar)