AirshipViewSizeReader

public struct AirshipViewSizeReader<Content> : View where Content : View

A view that wraps the view and returns the size without causing the view to expand.

  • Default constructor

    Declaration

    Swift

    public init(@ViewBuilder contentBlock: @escaping (CGSize?) -> Content)

    Parameters

    contentBlock

    The content block that will have the view size if available and returns the actual content.

  • Declaration

    Swift

    public var body: some View { get }