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