Contents

encode(_:forKey:)

Encodes directional edge inset data and associates it with the specified key in the coder’s archive.

Declaration

func encode(_ insets: NSDirectionalEdgeInsets, forKey key: String)

Parameters

  • insets:

    The edge insets 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 decodeDirectionalEdgeInsets(forKey:) method to retrieve the data.

See Also

Encoding Geometry-Based Data