The decoder to read data from.
Initializer
init(from:)
Creates a new instance by decoding from the given decoder.
Availability 有効性
- iOS 13.0+
- iPadOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
Technology
- Swift
UI
Declaration 宣言
init(from decoder: Decoder
) throws
Parameters パラメータ
decoder
Discussion 議論
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.