AirshipViewSizeReader
@MainActor
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
@MainActor 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
@MainActor public var body: some View { get }