Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Initializer

init(from:)

Creates a new instance by decoding from the given decoder.
init(from decoder: any Decoder) throws

Parameters

decoder

The decoder to read data from.

Discussion

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