Transformed

public struct Transformed : Element

Changes the transform of the wrapped element.

  • The content element whose transform is being affected.

    Declaration

    Swift

    public var wrappedElement: Element
  • The transform of the wrapped element.

    Declaration

    Swift

    public var transform: CATransform3D
  • Initializes a Transformed with the given content element and 3D transform.

    Declaration

    Swift

    public init(
        transform: CATransform3D,
        wrapping wrappedElement: Element
    )

    Parameters

    transform

    The 3D transform to be applied to the wrapped element.

    wrapping

    The content element to be made transparent.

  • Initializes a Transformed with the given content element and DD transform.

    Declaration

    Swift

    public init(
        transform: CGAffineTransform,
        wrapping wrappedElement: Element
    )

    Parameters

    transform

    The 2D transform to be applied to the wrapped element.

    wrapping

    The content element to be made transparent.

  • Declaration

    Swift

    public var content: ElementContent { get }
  • Declaration

    Swift

    public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?