One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute

enum · iOS 15.0+ · SDK 27.1

@frozen enum ForegroundColorAttribute

Members (3)

get · iOS 15.0+

name

TypeScript
static get nameValue(): string
Swift declaration
static let name: String

The name of the key.

static · iOS 26.0+

decode

TypeScript
static decode(decoder: SDKHandle): Color
Swift declaration
static func decode(from decoder: any Decoder) throws -> AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute.Value

Decodes a value from the provided decoder. This method throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid. - Parameter decoder: The decoder to read data from. - Returns: The decoded value.

static · iOS 26.0+

encode

TypeScript
static encode(value: Color, encoder: SDKHandle): void
Swift declaration
static func encode(_ value: AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute.Value, to encoder: any Encoder) throws

Encodes a value to the provided encoder. This method throws an error if writing to the encoder fails. - Parameters: - value: The value to encode. - encoder: The encoder to write data to.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →