LayoutAttributes

public struct LayoutAttributes
extension LayoutAttributes: Equatable

Contains layout-related metrics for an element.

  • Corresponds to UIView.center.

    Declaration

    Swift

    public var center: CGPoint { get set }
  • Corresponds to UIView.bounds.

    Declaration

    Swift

    public var bounds: CGRect { get set }
  • Corresponds to UIView.layer.transform.

    Declaration

    Swift

    public var transform: CATransform3D { get set }
  • Corresponds to UIView.alpha.

    Declaration

    Swift

    public var alpha: CGFloat { get set }
  • Corresponds to UIView.isUserInteractionEnabled.

    Declaration

    Swift

    public var isUserInteractionEnabled: Bool
  • Corresponds to UIView.isHidden.

    Declaration

    Swift

    public var isHidden: Bool
  • Corresponds to UIView.tintAdjustmentMode.

    Declaration

    Swift

    public var tintAdjustmentMode: UIView.TintAdjustmentMode
  • Declaration

    Swift

    public init()
  • Declaration

    Swift

    public init(frame: CGRect)
  • Declaration

    Swift

    public init(size: CGSize)
  • Declaration

    Swift

    public init(center: CGPoint, bounds: CGRect)
  • Declaration

    Swift

    public var frame: CGRect { get set }
  • Concatenates layout attributes, moving the receiver from the local coordinate space of layoutAttributes and into its parent coordinate space.

    Declaration

    Swift

    public func within(_ layoutAttributes: LayoutAttributes) -> LayoutAttributes

    Parameters

    layoutAttributes

    Another layout attributes object representing a parent coordinate space.

    Return Value

    The resulting combined layout attributes object.

  • Declaration

    Swift

    public static func == (lhs: LayoutAttributes, rhs: LayoutAttributes) -> Bool