UIViewChildren

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