Hello everyone. I need help in setting a Transpare...
# compose-ios
n
Hello everyone. I need help in setting a Transparent background for UIKitView composable using compose version 1.7.0-rc01. This is the sample code I've got, but no matter what i've tried the UIKitView composable always has a white background. Does anyone know a solution/work around for this issue? Thanks!
Copy code
UIKitView(
    factory = {
        UIView().apply {
            backgroundColor = UIColor.clearColor
            opaque = false
        }
    },
    modifier =
        Modifier
            .height(400.dp)
            .fillMaxWidth()
            .background(Color.Transparent),
)
r
I also have this issue, where my
ComposeUIViewController
has a white background
Copy code
ComposeUIViewController(
    configure = {
        opaque = false
    },
) {
    ...
}
n
i've even tried to give the modifier applied on the UIKitView composable any color and it still doesnt work the white color is always enforced
r
ComposeUIViewController
issue got fixed, see here: https://youtrack.jetbrains.com/issue/CMP-6801