I've tested mine project with Instruments (xCode Version 8.3.2) and encountered memory leaks in cases when I'm using [unowned self]
in closures.
Changing to [weak self]
and guard let strongSelf = self else { return }
seems like solves the problem.
The questions is:
why [unowned self]
is leaking? Maybe it is just false alarm by Instruments?