https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
b

brandonmcansh

02/23/2024, 6:31 PM
wrt https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-ios-ui-integration.html#use-compose-multiplatform-inside-a-swiftui-application how does one get Theme entities to be set at a component/VC level? I know when you are doing a full compose UI app its simple since the entry point is a single place and you can just wrap everything in Theme() but im unsure on how to do it when components are usable within SwiftUI screens
@John O'Reilly any ideas or thoughts?
obviously i can do
Copy code
fun _Badge(count: Int,) = ComposeUIViewController {
    Theme {
        Badge(count)
    }
}