How to observe object deinit in Swift
Issue #70
- Today I was browsing through Suas-iOS and the
subscription
links to life cycle of another object
1 | subscription.linkLifeCycleTo(object: self) |
It observes the deinit
of another job, interesting approach 👍 , take a look in https://github.com/zendesk/Suas-iOS/blob/master/Sources/StoreDeinitCallback.swift
1 | var deinitCallbackKey = "DEINITCALLBACK_SUAS" |