coolcat06/25/2020, 3:32 PM
to hold a reference to a View object from Kotlin, to try and avoid memory leaks. But these objects do not seem to get deallocated immediately when they go out of scope. This is annoying for me as I use iOS
as the view object, and the expectation is that these will have
called as soon as they are dismissed. I have tried the project
. In their iOS sample project
, the memory leak does not seem to occur, and the view has
invoked immediately. I have read the
source code and I think their implementation is the same as mine. I can’t understand this.
wingchi06/25/2020, 7:06 PM
in Swift when your
if that’s a concern for you.
coolcat06/26/2020, 6:07 AM
is never called because my Kotlin class is clinging on to a reference to it.
Peter Hsu06/28/2020, 11:38 PM