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.
 
 
 
 
Vladimir Mazunin 2f65f0e921
Updated example's versions (#5155)
2 months ago
..
.run
androidApp Update Android target SDK to 35 (#5152) 3 months ago
desktopApp Update kotlin version in examples (#4844) 7 months ago
gradle/wrapper Updated example's versions (#5155) 2 months ago
iosApp Add support for high-refresh rate displays in examples (#5104) 5 months ago
jsApp Update kotlin version in examples (#4844) 7 months ago
shared Update Android target SDK to 35 (#5152) 3 months ago
.gitignore
README.md Update link to setup environment instructions (#4344) 10 months ago
build.gradle.kts Update kotlin version in examples (#4844) 7 months ago
gradle.properties Updated example's versions (#5155) 2 months ago
gradlew Update gradle wrappers (#3050) 2 years ago
gradlew.bat Update gradle wrappers (#3050) 2 years ago
run-configurations.png
settings.gradle.kts Update kotlin version in examples (#4844) 7 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