LayoutElement

public protocol LayoutElement : AnyObject, LayoutCoordinateSpace, RectBasedElement

Protocol for any layout element

  • External representation of layout entity in coordinate space

    Declaration

    Swift

    var frame: CGRect { get set }
  • Internal coordinate space of layout entity

    Declaration

    Swift

    var bounds: CGRect { get set }
  • Internal space for layout subelements

    Declaration

    Swift

    var layoutBounds: CGRect { get }
  • Layout element that maintains this layout entity

    Declaration

    Swift

    var superElement: LayoutElement? { get }
  • Entity that represents element in layout time

    Declaration

    Swift

    var inLayoutTime: ElementInLayoutTime { get }
  • Removes layout element from hierarchy

    Declaration

    Swift

    func removeFromSuperElement()

LayoutElement

Available where Self: TextPresentedElement