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()
myClass.info["key"] = value
In some other places if I try to access it like this way
if let mValue = myClass.info["key"] {
...
}
I’ll get a address bad access crash sometimes, it’s not happening every time but from time to time