Initializer

init(from:configuration:)

Creates a new instance by retrieving the instance’s data from the specified decoder with help from the provided configuration.

Declaration 宣言

init(from decoder: Decoder, configuration: Self.DecodingConfiguration) throws

Parameters パラメータ

decoder

The decoder to read data from. このデコーダからデータを読み出すことになります。

configuration

A decoding configuration instance that provides additional information necessary for decoding.