buildArray
TypeScriptstatic buildArray(prompts: Array<SDKHandle>): PromptSwift declaration@export(implementation) static func buildArray(_ prompts: [some PromptRepresentable]) -> PromptCreates a builder with an array of prompts.
struct · iOS 26.0+ · SDK 27.1
@resultBuilder struct PromptBuilderA type that represents a prompt builder.
static buildArray(prompts: Array<SDKHandle>): PromptSwift declaration@export(implementation) static func buildArray(_ prompts: [some PromptRepresentable]) -> PromptCreates a builder with an array of prompts.
static buildEitherFirst(component: SDKHandle): PromptSwift declaration@export(implementation) static func buildEither(first component: some PromptRepresentable) -> PromptCreates a builder with the first component.
static buildEitherSecond(component: SDKHandle): PromptSwift declaration@export(implementation) static func buildEither(second component: some PromptRepresentable) -> PromptCreates a builder with the second component.
static buildOptional(component?: (Prompt) | null): PromptSwift declaration@export(implementation) static func buildOptional(_ component: Prompt?) -> PromptCreates a builder with an optional component.
static buildExpression(expression: Prompt): PromptSwift declaration@export(implementation) static func buildExpression(_ expression: Prompt) -> PromptCreates a builder with a prompt expression.
static buildExpression41437(expression: number): numberSwift declaration@export(implementation) static func buildExpression<P>(_ expression: P) -> P where P : PromptRepresentableCreates a builder with an expression.
static buildLimitedAvailability(prompt: SDKHandle): PromptSwift declaration@export(implementation) static func buildLimitedAvailability(_ prompt: some PromptRepresentable) -> PromptCreates a builder with a limited availability prompt.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
PromptBuilder.buildBlock(_:)
Swift parameter packs cannot cross the bridge.