myrronth
10/15/2020, 1:17 PMactual var listener: WeakReference<T>? = null
and updated my calls to listener?.get()?.method()
. But once I use my shared code in Swift, the listener
variable is not the expected weak var listener: T
but a wrapped KotlinWeakReference
. If I use this, it is the same as without – the value assigned to listener, a UIViewController, does not get deallocated once all the references in the concrete implementation are gone (the view controller gets dismissed and should not receive further messages from the listener)AnaR
10/24/2020, 5:35 PMmyrronth
10/26/2020, 6:10 AM