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.
 
 
 
 
Nikita Lipsky 5e7d55fb33
Update README.md for examples (#2990)
2 years ago
..
.run Move experimental/examples to examples (#2976) 2 years ago
androidApp Move experimental/examples to examples (#2976) 2 years ago
desktopApp Move experimental/examples to examples (#2976) 2 years ago
gradle/wrapper Move experimental/examples to examples (#2976) 2 years ago
iosApp Move experimental/examples to examples (#2976) 2 years ago
jsApp Move experimental/examples to examples (#2976) 2 years ago
shared Move experimental/examples to examples (#2976) 2 years ago
.gitignore Move experimental/examples to examples (#2976) 2 years ago
README.md Update README.md for examples (#2990) 2 years ago
build.gradle.kts Move experimental/examples to examples (#2976) 2 years ago
gradle.properties Move experimental/examples to examples (#2976) 2 years ago
gradlew Move experimental/examples to examples (#2976) 2 years ago
run-configurations.png Update README.md for examples (#2990) 2 years ago
settings.gradle.kts Move experimental/examples to examples (#2976) 2 years 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 JS in browser with WebAssembly Skia via Gradle

./gradlew jsApp:jsBrowserDevelopmentRun

Run MacOS via Gradle:

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