PositionContext

public struct PositionContext

Information provided to Position closures.

  • The size of the decoration being positioned within the decorated content’s bounds.

    Declaration

    Swift

    public var decorationSize: CGSize
  • The size of the content element within the Decorate element.

    Declaration

    Swift

    public var contentSize: CGSize
  • The environment the element is being rendered in.

    Declaration

    Swift

    public var environment: Environment