UIView-based Compose integration API#2589
Conversation
# Conflicts: # compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/scene/ComposeHostingViewController.uikit.kt
...i/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/interop/InteropInteractionModeTest.kt
Outdated
Show resolved
Hide resolved
.../ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/interaction/BasicInteractionTest.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/interop/InteropUIMenuTest.kt
Outdated
Show resolved
Hide resolved
...i/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/modifiers/KeepScreenOnModifierTest.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/scroll/ScrollTest.kt
Outdated
Show resolved
Hide resolved
.../ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/interaction/BasicInteractionTest.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/scene/ComposeSceneMediator.ios.kt
Show resolved
Hide resolved
compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/scene/ComposeContainer.ios.kt
Show resolved
Hide resolved
compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/scene/ComposeContainer.ios.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/scene/ComposeContainer.ios.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/scene/ComposeHostingView.ios.kt
Show resolved
Hide resolved
compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/uikit/ComposeContainerConfiguration.ios.kt
Show resolved
Hide resolved
| /** | ||
| * Base configuration of the Compose container. | ||
| */ |
There was a problem hiding this comment.
For the public, it should contain more details. At lease references to usages
There was a problem hiding this comment.
Generally it looks okay since all the internal properties are documented. Added references to the point of use in child classes.
compose/ui/ui/src/iosMain/kotlin/androidx/compose/ui/uikit/ComposeContainerConfiguration.ios.kt
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
|
|
||
| println("Debug: Running test with ComposeHostingViewController") |
There was a problem hiding this comment.
Should we keep this println in jb-main?
I see that there is a pattern to hide it under const flag and set it to false
There was a problem hiding this comment.
That's for tests debugging purposes. Otherwise it will be hard to understand what was the conditions where the test failed.
|
|
||
| fun waitUntil( | ||
| conditionDescription: String? = null, | ||
| timeoutMillis: Long = 5_000, |
There was a problem hiding this comment.
Let's convert it to Duration to have XXX.milliseconds outside for self-documentation
There was a problem hiding this comment.
Current API is already established - the function was moved here.
ComposeUIViewAPI to allow Compose content to be placed directly in the view hierarchy without explicitly attaching it to the parent View Controller. However, theUIViewControllermust still be present in the hierarchy.ComposeContainerclass.ComposeContainerConfigurationfor theComposeUIViewConfigurationandComposeUIViewControllerConfiguration.Fixes https://youtrack.jetbrains.com/issue/CMP-8478/Implement-UIView-based-compose-injection-API
Fixes https://youtrack.jetbrains.com/issue/CMP-7805/Unable-to-render-composable-inside-SwiftUI-Form
Release Notes
Features - iOS
ComposeUIViewAPI enabling Compose embedding in view hierarchyFixes - iOS
Formview