here mention size and fillmaxsize so it mean wrapC...
# multiplatform
m
here mention size and fillmaxsize so it mean wrapContentSize it not work in ios? for example i need native ui button
Copy code
UIKitView(
    factory = {
        UIButton.buttonWithType(UIButtonTypeSystem).apply {
                setTitle("Hello world", UIControlStateNormal)
                setTitleColor(UIColor.systemBlueColor, UIControlStateNormal)
                titleLabel?.font = UIFont.systemFontOfSize(17.0)
            }
    }, modifier = modifier.wrapContentSize()
)
if i use wrapcontentsize it not work. but i use size define after it work.
Copy code
modifier = modifier.fillMaxWidth().height(100.dp)
a
Self-sizing does not work for interop views for now. Check out the issue: https://youtrack.jetbrains.com/issue/CMP-5873/iOS-investigate-intrinsic-sizing-of-interop-elements
m
ok understand thanks for sharing
if possible some extra code write to achieve wrapContentSize