One Logo Pool Ball
FoundationModels · IOS API REFERENCE

DynamicGenerationSchema.Property

struct · iOS 26.0+ · SDK 27.1

struct Property

A property that belongs to a dynamic generation schema. Fields are named members of object types. Fields are strongly typed and have optional descriptions.

Members (1)

init · iOS 26.0+

init

TypeScript
static init(name: string, description: (string) | null, schema: DynamicGenerationSchema, isOptional?: boolean): DynamicGenerationSchema_Property
Swift declaration
init(name: String, description: String? = nil, schema: DynamicGenerationSchema, isOptional: Bool = false)

Creates a property referencing a dynamic schema. - Parameters: - name: A name for this property. - description: An optional natural language description of this property's contents. - schema: A schema representing the type this property contains. - isOptional: Determines if this property is required or not.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →