The decoder to read data from.
Initializer
init(from:)
Creates a new instance by decoding from the given decoder, when the type’s
RawValue
is Int8
.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
Available when
Self
conforms to Decodable
and RawValue
is Int8
.Parameters パラメータ
decoder
Discussion 議論
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.