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