UIViewChildren

class UIViewChildren(container: UIView, insert: (Widget<UIView>, UIView, Modifier, 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<UIView> = when (container) { is UIStackView -> { index, count -> container.typedArrangedSubviews.remove(index, count) } else -> { index, count -> container.typedSubviews.remove(index, count) } }, updateModifier: (Modifier, Int) -> Unit = { _, _ -> }, invalidateSize: () -> Unit = { (container.superview ?: container).setNeedsLayout() }) : Widget.Children<UIView>

Constructors

Link copied to clipboard
constructor(container: UIView, insert: (Widget<UIView>, UIView, Modifier, 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<UIView> = when (container) { is UIStackView -> { index, count -> container.typedArrangedSubviews.remove(index, count) } else -> { index, count -> container.typedSubviews.remove(index, count) } }, updateModifier: (Modifier, Int) -> Unit = { _, _ -> }, invalidateSize: () -> Unit = { (container.superview ?: container).setNeedsLayout() })

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)