Simplified Swift Multiplatform Integration
summary
Shows how to access Swift-only Apple APIs by wrapping Swift in an Objective‑C API and pulling it into Kotlin Multiplatform via a CocoaPods plugin, using @objc on NSObjects and Gradle to emit a podspec. Demonstrates a logging library (two public methods, unified logging via iOS 14) that initially fails linkage but runs after a linker-flag workaround, and a tiny Kotlin calculator built as an XCFramework and consumed by Swift using Swift Package Manager, all verified working.
AI-written summary · about
chapters (10)
- 0:00Introduction to Swift-Kotlin integration
- 3:27C compatibility with Kotlin Native
- 8:40Creating local CocoaPods
- 11:53Bridging Swift to Objective-C
- 14:59Building a multiplatform logging module
- 17:27Demo: Logging from Kotlin to Swift
- 20:17Error handling in Swift-Kotlin bridges
- 22:23Kotlin to Swift with Swift Package Manager
- 25:08Demo: Kotlin calculator in Swift
- 30:52Summary and key takeaways
related talks
52mBuilding apps using Kotlin Native
45mSDK Design and Publishing For Kotlin Multiplatform Mobile
36mIntroducing Kotlin Multiplatform in an existing project
36mWriting Kotlin Multiplatform libraries that your iOS teammates are gonna love
33mSDK Design and Publishing For Kotlin Multiplatform Mobile
37mKotlin/Multiplatform for iOS developers : state & future
37mKotlin Multiplatform Library Development
16mSwiftUI meets Kotlin Multiplatform!
