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()
+ })