Join Slack
Powered by
Hello, I have a doubt about something in native ko...
# multiplatform
n
Nicolas Bourdin
09/10/2020, 10:05 AM
Hello, I have a doubt about something in native kotlin
https://kotlinlang.org/docs/reference/native/objc_interop.html#kotlin-singletons
We agree that if I declare an object like this
object MyObject {
val property: String = ""
}
In swift, I can call this singleton like this
MyObject().property
, it will not recreate a new instance of MyObject each time?
t
Tijl
09/10/2020, 10:37 AM
it will not
Open in Slack
Previous
Next