buildEither(first:)
Compares content in a multistatement closure, resulting in use of the conditional content if the first argument you provide evaluates to true.
Declaration
static func buildEither<TrueContent, FalseContent>(first: TrueContent) -> _ConditionalMapContent<TrueContent, FalseContent> where TrueContent : MapContent, FalseContent : MapContentParameters
- first:
The content that represents the
truecontent element to compare against.
Return Value
Returns the conditional map content that meets the conditions the content builder expresses.