UIView

class UIView : UIResponder, NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate
  • Adds a view to the end of the receiver’s list of subviews and then apply autolayout contraints to fit the current view.

    Declaration

    Swift

    internal func addAutolayoutSubview(_ view: UIView,
                                       top: CGFloat? = 0.0,
                                       height: CGFloat? = 1.0,
                                       leading: CGFloat? = 0.0,
                                       width: CGFloat? = 1.0)
  • Inserts a view below another view in the view hierarchy and then apply autolayout contraints to fit the current view.

    Declaration

    Swift

    internal func insertAutolayoutSubview(_ view: UIView,
                                          belowSubview siblingSubview: UIView,
                                          top: CGFloat? = 0.0,
                                          height: CGFloat? = 1.0,
                                          leading: CGFloat? = 0.0,
                                          width: CGFloat? = 1.0)
  • Inserts a view above another view in the view hierarchy and then apply autolayout contraints to fit the current view.

    Declaration

    Swift

    internal func insertAutolayoutSubview(_ view: UIView,
                                          aboveSubview siblingSubview: UIView,
                                          top: CGFloat? = 0.0,
                                          height: CGFloat? = 1.0,
                                          leading: CGFloat? = 0.0,
                                          width: CGFloat? = 1.0)