Contents

encode(_:forKey:)

Encodes offset data and associates it with the specified key in the coder’s archive.

Declaration

func encode(_ offset: UIOffset, forKey key: String)

Parameters

  • offset:

    The offset data to encode.

  • key:

    The key identifying the data.

Discussion

When decoding the data from the archive, you pass the value in the key parameter to the corresponding decodeUIOffset(forKey:) method to retrieve the data.

See Also

Related Documentation

Encoding Geometry-Based Data