From 9e7c054e23e7d7928eaa1c2acae4f53f033a33be Mon Sep 17 00:00:00 2001 From: swankjesse Date: Thu, 3 Oct 2024 18:53:49 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20site=20from=20=20@=20b3fc024de?= =?UTF-8?q?a288d118d574d88d594a8e246c22ad3=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../-u-i-view-children.html | 26 +++++++--- .../-u-i-view-children/index.html | 52 +++++++++++++------ .../-view-group-children.html | 8 +-- .../-view-group-children/index.html | 16 +++--- .../app.cash.redwood.widget/index.html | 30 +++++++---- latest/docs/scripts/pages.json | 2 +- 6 files changed, 91 insertions(+), 43 deletions(-) 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() })