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.
To setup the environment, please consult these instructions.
Choose a run configuration for an appropriate target in Android Studio and run it.
./gradlew desktopApp:run
- on Intel CPU:
./gradlew :shared:runDebugExecutableMacosX64
- on Apple Silicon:
./gradlew :shared:runDebugExecutableMacosArm64