UIViewChildren

constructor(container: UIView, insert: (UIView, 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) } })