UIViewHierarchy extension

UIViewHierarchy

on

Properties

directionalLayoutMargins NSDirectionalEdgeInsets

Available on UIView, provided by the UIViewHierarchy extension

directionalLayoutMargins
getter/setter pair
insetsLayoutMarginsFromSafeArea bool

Available on UIView, provided by the UIViewHierarchy extension

insetsLayoutMarginsFromSafeArea
getter/setter pair
keyboardLayoutGuide UIKeyboardLayoutGuide

Available on UIView, provided by the UIViewHierarchy extension

Follows the keyboard when on screen and docked. When the keyboard is offscreen or undocked, keyboardLayoutGuide.topAnchor matches the view's safeAreaLayoutGuide.bottomAnchor.
no setter
layoutMargins UIEdgeInsets

Available on UIView, provided by the UIViewHierarchy extension

layoutMargins
getter/setter pair
layoutMarginsGuide UILayoutGuide

Available on UIView, provided by the UIViewHierarchy extension

layoutMarginsGuide
no setter
preservesSuperviewLayoutMargins bool

Available on UIView, provided by the UIViewHierarchy extension

preservesSuperviewLayoutMargins
getter/setter pair
readableContentGuide UILayoutGuide

Available on UIView, provided by the UIViewHierarchy extension

This content guide provides a layout area that you can use to place text and related content whose width should generally be constrained to a size that is easy for the user to read. This guide provides a centered region that you can place content within to get this behavior for this view.
no setter
safeAreaInsets UIEdgeInsets

Available on UIView, provided by the UIViewHierarchy extension

safeAreaInsets
no setter
safeAreaLayoutGuide UILayoutGuide

Available on UIView, provided by the UIViewHierarchy extension

safeAreaLayoutGuide
no setter
subviews → NSArray

Available on UIView, provided by the UIViewHierarchy extension

subviews
no setter
superview UIView?

Available on UIView, provided by the UIViewHierarchy extension

superview
no setter
window UIWindow?

Available on UIView, provided by the UIViewHierarchy extension

window
no setter

Methods

addSubview(UIView view) → void

Available on UIView, provided by the UIViewHierarchy extension

addSubview:
bringSubviewToFront(UIView view) → void

Available on UIView, provided by the UIViewHierarchy extension

bringSubviewToFront:
didAddSubview(UIView subview) → void

Available on UIView, provided by the UIViewHierarchy extension

didAddSubview:
didMoveToSuperview() → void

Available on UIView, provided by the UIViewHierarchy extension

didMoveToSuperview
didMoveToWindow() → void

Available on UIView, provided by the UIViewHierarchy extension

didMoveToWindow
exchangeSubviewAtIndex(int index1, {required int withSubviewAtIndex}) → void

Available on UIView, provided by the UIViewHierarchy extension

exchangeSubviewAtIndex:withSubviewAtIndex:
insertSubview(UIView view, {required int atIndex}) → void

Available on UIView, provided by the UIViewHierarchy extension

insertSubview:atIndex:
insertSubview$1(UIView view, {required UIView belowSubview}) → void

Available on UIView, provided by the UIViewHierarchy extension

insertSubview:belowSubview:
insertSubview$2(UIView view, {required UIView aboveSubview}) → void

Available on UIView, provided by the UIViewHierarchy extension

insertSubview:aboveSubview:
isDescendantOfView(UIView view) bool

Available on UIView, provided by the UIViewHierarchy extension

isDescendantOfView:
layoutIfNeeded() → void

Available on UIView, provided by the UIViewHierarchy extension

layoutIfNeeded
layoutMarginsDidChange() → void

Available on UIView, provided by the UIViewHierarchy extension

layoutMarginsDidChange
layoutSubviews() → void

Available on UIView, provided by the UIViewHierarchy extension

layoutSubviews
removeFromSuperview() → void

Available on UIView, provided by the UIViewHierarchy extension

removeFromSuperview
safeAreaInsetsDidChange() → void

Available on UIView, provided by the UIViewHierarchy extension

safeAreaInsetsDidChange
sendSubviewToBack(UIView view) → void

Available on UIView, provided by the UIViewHierarchy extension

sendSubviewToBack:
setNeedsLayout() → void

Available on UIView, provided by the UIViewHierarchy extension

setNeedsLayout
viewWithTag(int tag) UIView?

Available on UIView, provided by the UIViewHierarchy extension

viewWithTag:
willMoveToSuperview(UIView? newSuperview) → void

Available on UIView, provided by the UIViewHierarchy extension

willMoveToSuperview:
willMoveToWindow(UIWindow? newWindow) → void

Available on UIView, provided by the UIViewHierarchy extension

willMoveToWindow:
willRemoveSubview(UIView subview) → void

Available on UIView, provided by the UIViewHierarchy extension

willRemoveSubview: