ios

Export Kotlin Multiplatform code as an iOS framework with Swift declarations.

1|1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/pddhkt/kotlin-kmp-skills --skill ios-pddhkt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ios
Source: https://github.com/pddhkt/kotlin-kmp-skills/tree/main/plugins/kotlin-kmp/skills/ios
Command: npx skills add https://github.com/pddhkt/kotlin-kmp-skills --skill ios-pddhkt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

iOS integration patterns for KMP address the challenge of reusing shared Kotlin code in iOS apps by exporting Kotlin sources as a framework, wiring actual declarations, and bridging SwiftUI components with Kotlin logic.

Core Features & Use Cases

  • Export as a framework for iOS to reuse shared modules in Swift.
  • Provide actual implementations for expect declarations and wrap Kotlin flows for SwiftUI integration.
  • Create Swift wrappers and DI glue to accelerate iOS app development with multiplatform code.

Quick Start

Import the generated Shared framework into your iOS project and call Kotlin code from Swift.

Frequently Asked Questions about ios

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Kotlin Multiplatform code to iOS?

You can export Kotlin Multiplatform code to iOS by compiling it as a framework, which exposes Kotlin sources to Swift. This allows you to reuse shared modules and call Kotlin code directly from Swift wrappers.

What is the best way to integrate Kotlin Multiplatform with SwiftUI?

Integrating KMP with SwiftUI requires wrapping Kotlin flows for SwiftUI integration and providing actual implementations for expect declarations. This bridges Kotlin logic with SwiftUI components for cross-language data exchange.

How does cross-language interop work between Swift and Kotlin?

Cross-language interop works by exporting Kotlin sources as a framework and providing Swift-facing declarations. This mechanism satisfies platform exposure and cross-language data exchange requirements between Swift and Kotlin.

Can I use Kotlin Multiplatform for actual implementations in iOS apps?

Yes, Kotlin Multiplatform can be used for actual implementations in iOS apps by wiring actual declarations and exporting them as a framework. This accelerates iOS app development using shared multiplatform code.

What are the limitations of exporting Kotlin code as a framework for iOS?

Exporting Kotlin code as a framework requires creating Swift wrappers and DI glue to bridge lifecycle and dispatch integration. Without these wrappers, direct reuse of shared modules in Swift may face interoperability limitations.