Contents

init(from:)

Decodes the interval state from the provided decoder.

Declaration

required init(from decoder: any Decoder) throws

Parameters

  • decoder:

    The decoder to read data from.

Discussion

The initializer throws an error if reading from the decoder fails, or if the decoder’s data is corrupt or invalid.