WhatsNewPagesBuilder
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
@resultBuilder
public enum WhatsNewPagesBuilder
Returns an instance of a view that is used internally by the WhatsNewPageView.
-
Builds an empty view from a block containing no statements.
Declaration
Swift
public static func buildBlock() -> EmptyView -
Passes a single view written as a child view through unmodified.
An example of a single view written as a child view is
{ Text("Hello") }Declaration
Swift
public static func buildBlock(_ content: some View) -> some WhatsNewPageList -
Provides support for “if” statements in multi-statement closures, producing an optional view that is visible only when the condition evaluates to
true.Declaration
Swift
public static func buildIf(_ content: (some View)?) -> some WhatsNewPageList -
Provides support for “if” statements in multi-statement closures, producing conditional content for the “then” branch.
Declaration
Swift
public static func buildEither<TrueContent, FalseContent>(first: TrueContent) -> ConditionalSingleTag<TrueContent, FalseContent> where TrueContent : View, FalseContent : View -
Provides support for “if-else” statements in multi-statement closures, producing conditional content for the “else” branch.
Declaration
Swift
public static func buildEither<TrueContent, FalseContent>(second: FalseContent) -> ConditionalSingleTag<TrueContent, FalseContent> where TrueContent : View, FalseContent : View