If using Compose for particular screens in otherwi...
# compose-ios
j
If using Compose for particular screens in otherwise SwiftUI based iOS app, what determines Material3 theme values when used in shared Compose code....just uses defaults?
👍 1
hacked together as a test but guess can do something like following
Copy code
fun SessionDetailsViewController(session: SessionDetails, socialLinkClicked: (String) -> Unit): UIViewController =
    ComposeUIViewController {
        val colorScheme = lightColorScheme(
            primary = Color(0xFF007AFF)
        )

        MaterialTheme(colorScheme = colorScheme) {
            SessionDetailViewShared(session, socialLinkClicked)
        }
    }
👍 1
👍🏻 1
d
Yes it uses default values as on Android and Desktop. And you can set them in MaterialTheme function.