Streamlines Kotlin Multiplatform integration with iOS through framework exports, SwiftUI wrappers, and native platform implementations.
This skill provides specialized guidance for developers integrating Kotlin Multiplatform (KMP) modules into native iOS applications. It offers standardized patterns for exporting XCFrameworks, implementing 'actual' declarations for iOS-specific APIs like Keychain and SQLite, and bridging Kotlin Coroutines/Flows into SwiftUI using ObservableObject wrappers. By following these best practices, developers can avoid common pitfalls such as memory leaks in Flow watchers, threading crashes, and generic type erasure issues when calling Kotlin from Swift code.
주요 기능
01Main-thread safety and nullability handling best practices
020 GitHub stars
03Standardized Gradle configurations for XCFramework and SPM export
04SwiftUI integration strategies including ViewModel and Flow wrappers
05Implementation patterns for iOS-specific APIs like Keychain and SQLDelight
06Memory management guidelines for closing Flow watchers in Swift
사용 사례
01Configuring a KMP project to export a static or dynamic iOS framework
02Bridging Kotlin StateFlows to SwiftUI views using the ObservableObject pattern
03Implementing platform-specific logic like secure storage using the iOS Keychain