encode(_:forKey:)
Encodes a given double value and associates it with a key.
Declaration
func encode(_ value: Double, forKey key: String)Parameters
- value:
The value to encode.
- key:
The key with which to associate
realv. This value must not benil.