encode(_:forKey:)
Encodes edge inset data and associates it with the specified key in the coder’s archive.
Declaration
func encode(_ insets: UIEdgeInsets, 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 decodeUIEdgeInsets(forKey:) method to retrieve the data.