CreationKit Documentation

Structure Form​Builder

@resultBuilder
public struct FormBuilder  

Methods

build​Block(_:​)

public static func buildBlock(_ components: [FormItem]...) -> [FormItem]  

build​Expression(_:​)

public static func buildExpression(_ expression: FormItem) -> [FormItem]  

build​Expression(_:​)

public static func buildExpression(_ expression: [FormItem]) -> [FormItem]  

build​Either(first:​)

public static func buildEither(first component: [FormItem]) -> [FormItem]  

build​Either(second:​)

public static func buildEither(second component: [FormItem]) -> [FormItem]  

build​Array(_:​)

public static func buildArray(_ components: [[FormItem]]) -> [FormItem]  

build​Optional(_:​)

public static func buildOptional(_ component: [FormItem]?) -> [FormItem]