Creates a new instance by decoding from the given decoder.
SDK
- Xcode 11.0+
Framework
- Swift Standard Library
Declaration
Available when Change Element conforms to Decodable and Encodable.
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.
Note
This documentation comment was inherited from Decodable
.