Contents

encode(_:forKey:)

Encodes an affine transform and associates it with the specified key in the receiver’s archive.

Declaration

func encode(_ transform: CGAffineTransform, forKey key: String)

Parameters

  • transform:

    The transform information 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 decodeCGAffineTransform(forKey:) method to retrieve the data.

See Also

Related Documentation

Encoding Geometry-Based Data