Huanzhi Zhang
06/05/2024, 11:32 PMabstract class KotlinClass() {
val info: MutableMap<String, Any> = mutableMapOf()
}
then in swift class I have something like this
public class SwiftClass: KotlinClass {
...
}
var myClass = SwiftClass()
<http://myClass.info[%22key%22]|myClass.info["key"]> = value
In some other places if I try to access it like this way
if let mValue = <http://myClass.info[%22key%22]|myClass.info["key"]> {
...
}
I’ll get a address bad access crash sometimes, it’s not happening every time but from time to time