protocol Decodable

A type that can decode itself from an external representation.

Inheritance View Protocol Hierarchy →
Import import Swift


init(from:) Required

Creates a new instance by decoding from the given decoder.

This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

decoder: The decoder to read data from.


init(from decoder: Decoder)