UIViewChildren

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