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