Hannes
12/23/2019, 9:48 PMobject from iOS side?
Let's say I have in commonMain a
object Foo
How can i call Foo from iOS side?
If I try to use Foo directly I actually somehow access the Type, but not the singleton instance. Any idea?kpgalligan
12/23/2019, 10:55 PMspierce7
12/24/2019, 12:40 AMFoo() returns the same instance for Kotlin object . Even though it looks like you are calling a constructor, you are really just accessing the singleton.
You can confirm this by testing that Foo() === Foo()olonho
12/24/2019, 5:07 AMHannes
12/24/2019, 10:04 AM