Initializerswift 6.0.3Swift

init(from:)

Creates a new instance by decoding from the given decoder, when the type’s RawValue is UInt128.

iOS
18.0+
macOS
15.0+
tvOS
18.0+
visionOS
2.0+
watchOS
11.0+
init(from decoder: any Decoder) throws

Parameters

decoder

The decoder to read data from.

This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.