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