0PricingLogin
Kotlin Multiplatform Academy · Lesson

Call Shared Code from the iOS App

Import the framework and call it from Swift.

Shared Code as a Framework

On iOS your Kotlin compiles into a framework. Swift consumes it just like any Apple library you import into a project.

Import the Framework

At the top of your Swift file you import the shared framework by its name, usually Shared. That single line unlocks every export.

import Shared

All lessons in this course

  1. A Greeting Function in commonMain
  2. Call Shared Code from the Android App
  3. Call Shared Code from the iOS App
  4. Change Once, See It on Both Apps
← Back to Kotlin Multiplatform Academy