should I write actual implementation in Kotlin onl...
# multiplatform
h
should I write actual implementation in Kotlin only?
a
expect and actual are kotlin specific paradigms. If you want to access native code from actual, may be you can expose it to your kotlin class
h
@Anum Amin how can I call Swift library from common code?
j
Kotlin doesn't have direct Swift interop, only Objective-C. You can call Swift code that has been annotated
@objc
.
r
You can also use an interface instead of expect/actual. A Swift class can implement a Kotlin interface.
h
thank you very much