Initializer

init(from:configuration:)

Creates a new array by decoding from the given decoder with help from the provided configuration.

Declaration 宣言

init(from decoder: Decoder, configuration: Element.DecodingConfiguration) throws
Available when Element conforms to DecodableWithConfiguration. ElementDecodableWithConfigurationに準拠する時に利用可能です。

Parameters パラメータ

decoder

The decoder to read data from. それからデータを読み出すデコーダ。

configuration

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

Discussion 解説

Use this method when the array contains elements that conform to DecodableWithConfiguration.

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Encoding and Decoding エンコーディングとデコーディング