You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Igor Demin 6a481b32c2 Compose 1.6.2 2 months ago
..
.run Compose Multiplatform 1.4.0 docs (#3044) 1 year ago
androidApp Add org.gradle.toolchains.foojay-resolver-convention to the examples (#3666) 9 months ago
desktopApp Move experimental/examples to examples (#2976) 1 year ago
gradle/wrapper Migrate all samples to the new resources library (#4386) 3 months ago
iosApp iOS examples. Returned the ContentView back to how it was (#3633) 9 months ago
jsApp Support/1.5.1 (#3631) 9 months ago
shared Migrate all samples to the new resources library (#4386) 3 months ago
.gitignore Move experimental/examples to examples (#2976) 1 year ago
README.md Update link to setup environment instructions (#4344) 3 months ago
build.gradle.kts Move experimental/examples to examples (#2976) 1 year ago
gradle.properties Compose 1.6.2 2 months ago
gradlew Update gradle wrappers (#3050) 1 year ago
gradlew.bat Update gradle wrappers (#3050) 1 year ago
run-configurations.png Compose Multiplatform 1.4.0 docs (#3044) 1 year ago
settings.gradle.kts Add org.gradle.toolchains.foojay-resolver-convention to the examples (#3666) 9 months ago

README.md

Chat example app

SwiftUI interop

This example shows how you can set up an interop between SwiftUI and Compose. Pay attention to the file ComposeViewControllerToSwiftUI.swift. This file helps to add Compose inside SwiftUI hierarchy.

Example can run on Android, iOS, desktop or in a browser.

Setting up your development environment

To setup the environment, please consult these instructions.

How to run

Choose a run configuration for an appropriate target in Android Studio and run it.

run-configurations.png

Run on desktop via Gradle

./gradlew desktopApp:run

Run MacOS via Gradle:

  • on Intel CPU: ./gradlew :shared:runDebugExecutableMacosX64
  • on Apple Silicon: ./gradlew :shared:runDebugExecutableMacosArm64