Use Apple Frameworks from Kotlin
Access platform.Foundation and friends directly.
Apple APIs, in Kotlin
Kotlin/Native ships with ready-made bindings for Apple platforms. From iosMain you can call Foundation, UIKit and more directly in Kotlin. 🍎
The platform Packages
Every Apple framework lives under a platform package. Import platform.Foundation, platform.UIKit, or platform.CoreLocation just like any Kotlin package.
import platform.Foundation.NSDate
import platform.UIKit.UIDeviceAll lessons in this course
- Use Apple Frameworks from Kotlin
- Memory & ARC in Kotlin/Native
- cinterop with C Libraries
- Wrap a Native SDK Cleanly