UIViewChildren

class UIViewChildren(parent: UIView, insert: (UIView, Int) -> Unit = when (parent) { is UIStackView -> { view, index -> parent.insertArrangedSubview(view, index.convert()) } else -> { view, index -> parent.insertSubview(view, index.convert<NSInteger>()) } }, remove: (index: Int, count: Int) -> Array<UIView> = when (parent) { is UIStackView -> { index, count -> parent.typedArrangedSubviews.remove(index, count) } else -> { index, count -> parent.typedSubviews.remove(index, count) } }) : Widget.Children<UIView>

Constructors

Link copied to clipboard
constructor(parent: UIView, insert: (UIView, Int) -> Unit = when (parent) { is UIStackView -> { view, index -> parent.insertArrangedSubview(view, index.convert()) } else -> { view, index -> parent.insertSubview(view, index.convert<NSInteger>()) } }, remove: (index: Int, count: Int) -> Array<UIView> = when (parent) { is UIStackView -> { index, count -> parent.typedArrangedSubviews.remove(index, count) } else -> { index, count -> parent.typedSubviews.remove(index, count) } })

Properties

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

Functions

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()
Link copied to clipboard
open override fun remove(index: Int, count: Int)