diff --git a/latest/docs/redwood-widget/app.cash.redwood.widget/-u-i-view-children/-u-i-view-children.html b/latest/docs/redwood-widget/app.cash.redwood.widget/-u-i-view-children/-u-i-view-children.html index 82688b3d33..9cfd09e427 100644 --- a/latest/docs/redwood-widget/app.cash.redwood.widget/-u-i-view-children/-u-i-view-children.html +++ b/latest/docs/redwood-widget/app.cash.redwood.widget/-u-i-view-children/-u-i-view-children.html @@ -58,20 +58,30 @@
-
+

UIViewChildren

-
constructor(container: <Error class: unknown class>, insert: (<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>, <Error class: unknown class>, Int) -> Unit = when (container) { - is UIStackView -> { _, view, _, index -> container.insertArrangedSubview(view, index.convert()) } - else -> { _, view, _, index -> container.insertSubview(view, index.convert<NSInteger>()) } - }, remove: (index: Int, count: Int) -> Array<<Error class: unknown class>> = when (container) { - is UIStackView -> { index, count -> container.typedArrangedSubviews.remove(index, count) } - else -> { index, count -> container.typedSubviews.remove(index, count) } - }, updateModifier: (<Error class: unknown class>, Int) -> Unit = { _, _ -> }, invalidateSize: () -> Unit = { (container.superview ?: container).setNeedsLayout() })
+
constructor(container: <Error class: unknown class>, insert: (index: Int, <Error class: unknown class><<Error class: unknown class>>) -> Unit = when (container) { + is UIStackView -> { index, widget -> + container.insertArrangedSubview(widget.value, index.convert()) + } + else -> { index, widget -> + container.insertSubview(widget.value, index.convert<NSInteger>()) + } + }, remove: (index: Int, count: Int) -> Unit = when (container) { + is UIStackView -> { index, count -> + container.typedArrangedSubviews.removeFromSuperview(index, count) + } + else -> { index, count -> + container.typedSubviews.removeFromSuperview(index, count) + } + }, invalidateSize: () -> Unit = { (container.superview ?: container).setNeedsLayout() }, onModifierUpdated: (index: Int, <Error class: unknown class><<Error class: unknown class>>) -> Unit = { _, _ -> + invalidateSize() + })

Constructors

-
+
- +
Link copied to clipboard
-
constructor(container: <Error class: unknown class>, insert: (<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>, <Error class: unknown class>, Int) -> Unit = when (container) { - is UIStackView -> { _, view, _, index -> container.insertArrangedSubview(view, index.convert()) } - else -> { _, view, _, index -> container.insertSubview(view, index.convert<NSInteger>()) } - }, remove: (index: Int, count: Int) -> Array<<Error class: unknown class>> = when (container) { - is UIStackView -> { index, count -> container.typedArrangedSubviews.remove(index, count) } - else -> { index, count -> container.typedSubviews.remove(index, count) } - }, updateModifier: (<Error class: unknown class>, Int) -> Unit = { _, _ -> }, invalidateSize: () -> Unit = { (container.superview ?: container).setNeedsLayout() })
+
constructor(container: <Error class: unknown class>, insert: (index: Int, <Error class: unknown class><<Error class: unknown class>>) -> Unit = when (container) { + is UIStackView -> { index, widget -> + container.insertArrangedSubview(widget.value, index.convert()) + } + else -> { index, widget -> + container.insertSubview(widget.value, index.convert<NSInteger>()) + } + }, remove: (index: Int, count: Int) -> Unit = when (container) { + is UIStackView -> { index, count -> + container.typedArrangedSubviews.removeFromSuperview(index, count) + } + else -> { index, count -> + container.typedSubviews.removeFromSuperview(index, count) + } + }, invalidateSize: () -> Unit = { (container.superview ?: container).setNeedsLayout() }, onModifierUpdated: (index: Int, <Error class: unknown class><<Error class: unknown class>>) -> Unit = { _, _ -> + invalidateSize() + })
diff --git a/latest/docs/redwood-widget/app.cash.redwood.widget/-view-group-children/-view-group-children.html b/latest/docs/redwood-widget/app.cash.redwood.widget/-view-group-children/-view-group-children.html index c8eaf53d8b..e1032ac49f 100644 --- a/latest/docs/redwood-widget/app.cash.redwood.widget/-view-group-children/-view-group-children.html +++ b/latest/docs/redwood-widget/app.cash.redwood.widget/-view-group-children/-view-group-children.html @@ -58,17 +58,19 @@
-
+

ViewGroupChildren

-
constructor(container: ViewGroup, insert: (index: Int, view: View) -> Unit = { index, view -> - container.addView(view, index) +
constructor(container: ViewGroup, insert: (index: Int, widget: Widget<View>) -> Unit = { index, widget -> + container.addView(widget.value, index) }, remove: (index: Int, count: Int) -> Unit = { index, count -> container.removeViews(index, count) + }, onModifierUpdated: (index: Int, widget: Widget<View>) -> Unit = { _, _ -> + container.requestLayout() })