View

extension View: Constrainable

VIew is an abstraction of Apple visual layout system

  • Property to access the SketchKitDSL and be able to applyConstraints

    Declaration

    Swift

    public var layout: SketchKitDSL { get }
  • A layout anchor representing the top edge of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeTopAnchor: NSLayoutYAxisAnchor { get }
  • A layout anchor representing the bottom edge of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeBottomAnchor: NSLayoutYAxisAnchor { get }
  • A layout anchor representing the leading edge of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeLeadingAnchor: NSLayoutXAxisAnchor { get }
  • A layout anchor representing the left edge of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeLeftAnchor: NSLayoutXAxisAnchor { get }
  • A layout anchor representing the trailing edge of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeTrailingAnchor: NSLayoutXAxisAnchor { get }
  • A layout anchor representing the right edge of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeRightAnchor: NSLayoutXAxisAnchor { get }
  • A layout anchor representing the horizontal center of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeCenterXAnchor: NSLayoutXAxisAnchor { get }
  • A layout anchor representing the vertical center of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeCenterYAnchor: NSLayoutYAxisAnchor { get }
  • A layout anchor representing the width of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeWidthAnchor: NSLayoutDimension { get }
  • A layout anchor representing the height of the view’s frame considering the SafeArea if available.

    Declaration

    Swift

    var safeHeightAnchor: NSLayoutDimension { get }