Open Alex009 opened 1 month ago
The original design was to return a new value, optionally, but it has quite a bit of complexity. Since we only use views and UIViews internally, it was decided to only implement the mutating version to start with.
I also don't think returning is sufficient to solve Compose UI, and the widget type of Compose UI probably needs changed to have a Modifier parameter.
We try to use Modifier without scope. For iOS we got in WidgetFactory additional method
and we can do additional configuration of UIView. but for android ComposeUI we got:
and we can't change @Composable lambda. we can only create new lambda.
i think better to do next api:
in this case we can map current value to some another to give some modifiers