Anybody facing this error when using `Modifier.fil...
# compose-ios
c
Anybody facing this error when using
Modifier.fillMazSize()
on
UIKitView
Error in thread
> Uncaught Kotlin exception: kotlin.IllegalStateException: Size(1242 x 2147483647) is out of range. Each dimension must be between 0 and 16777215.
>
>
f
Are you using it inside a scrollable container?
1
c
Yes I am.
f
That's the problem. Scrollable parent does not have a fixed size, so the UIKitView grows infinitely. I'd recommend using
.fillMaxWidth()
only
c
It throws the exception when I use fillMaxWidth too
f
is your parent element scroll horizontal?
c
Though I’m using
.verticalScrollable
🤔 1
f
and if you don't set anything, does it work?
c
Nope it doesn’t, I think it needs a fix size when used inside a scrollable container
1568 Views