From the course: Kotlin Multiplatform Development
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Making it easier with Swift export - Kotlin Tutorial
From the course: Kotlin Multiplatform Development
Making it easier with Swift export
- [Instructor] In our previous video, we called our Kotlin code directly from Swift. However, there are some small issues that may become annoying to Swift developers having to use our Kotlin code. We discuss Kotlin Sealed classes as one example of a type that will be difficult to work with in traditional Kotlin Multiplatform code. In this video, we'll discuss the solutions to make KMP code much easier to integrate for Swift developers. After KMP came out and developers discovered some minor difficulties with certain aspects of the integration between Kotlin and Swift, a KMP consulting company called Touchlab realized that there could be a commercial opportunity in making it all easier. In fact, this is the same company that wrote much of the documentation for KMP. They wrote a product called Touchlab SKIE, S-K-I-E, which used compiler plugins to rewrite the code interface to be much easier to use along with Swift code. This would help developers use Sealed classes, as Swift enums and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.