Disposing RxSwift’s Memory Leaks

Tracking down memory leaks in your RxSwift-backed app

Investigating unrelated multiple crashes

Starting with the obvious

Focusing on Rx

Rx Resource Count: 5434
Rx Resource Count: 5461
Rx Resource Count: 6179
Rx Resource Count: 6446
Rx Resource Count: 6450
Rx Resource Count: 6739
Rx Resource Count: 6771
Rx Resource Count: 7273
Rx Resource Count: 7807
Rx Resource Count: 8349
Rx Resource Count: 9184
Rx Resource Count: 10000
Rx Resource Count: 10510
.
.
.

Main reasons for Rx-related Memory Leaks

Dispose me!

Disposing your Memory Leaks

The first rule of The Fight Club
Get only a copy of the frame, not the entire gesture

To recap

iOS Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store