UIViewChildren

class UIViewChildren(container: UIView, insert: (index: Int, widget: Widget<UIView>) -> 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, widget: Widget<UIView>) -> Unit = { _, _ -> invalidateSize() }) : Widget.Children<UIView>

Constructors

Link copied to clipboard
constructor(container: UIView, insert: (index: Int, widget: Widget<UIView>) -> 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, widget: Widget<UIView>) -> Unit = { _, _ -> invalidateSize() })

Properties

Link copied to clipboard
open override val widgets: List<Widget<UIView>>

Functions

Link copied to clipboard
open override fun detach()
Link copied to clipboard
open override fun insert(index: Int, widget: Widget<UIView>)
Link copied to clipboard
open override fun move(fromIndex: Int, toIndex: Int, count: Int)
Link copied to clipboard
open override fun onModifierUpdated(index: Int, widget: Widget<UIView>)
Link copied to clipboard
open override fun remove(index: Int, count: Int)