isAttribute
TypeScriptget isAttribute(): booleanSwift declarationvar isAttribute: Bool { get }class · iOS 17.0+ · SDK 27.1
class AttributeAn object that describes the configuration and behavior of a specific property of a model class.
get isAttribute(): booleanSwift declarationvar isAttribute: Bool { get }get isOptional(): booleanSwift declarationvar isOptional: Boolset isOptional(value: boolean)Swift declarationvar isOptional: Boolget isTransient(): booleanSwift declarationvar isTransient: Bool { get }get defaultValue(): (unknown) | nullSwift declarationvar defaultValue: Any?set defaultValue(value: (unknown) | null)Swift declarationvar defaultValue: Any?get hashModifier(): (string) | nullSwift declarationvar hashModifier: String?set hashModifier(value: (string) | null)Swift declarationvar hashModifier: String?get originalName(): stringSwift declarationvar originalName: Stringset originalName(value: string)Swift declarationvar originalName: Stringget isRelationship(): booleanSwift declarationvar isRelationship: Bool { get }get isTransformable(): booleanSwift declarationvar isTransformable: Bool { get }get debugDescription(): stringSwift declarationvar debugDescription: String { get }A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.
get name(): stringSwift declarationvar name: Stringset name(value: string)Swift declarationvar name: Stringget options(): Array<Schema_Attribute_Option>Swift declarationvar options: [Schema.Attribute.Option]set options(value: Array<Schema_Attribute_Option>)Swift declarationvar options: [Schema.Attribute.Option]get isUnique(): booleanSwift declarationvar isUnique: Bool { get }get isCodable(): booleanSwift declarationvar isCodable: Bool { get }3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
Schema.Attribute.valueType
Passing a Swift type itself is not supported.
Schema.Attribute.init(_:originalName:hashModifier:)
A variable number of Swift arguments is not supported.
Schema.Attribute.init(name:originalName:options:valueType:defaultValue:hashModifier:)
Passing a Swift type itself is not supported.