Contents

containsValue(forKey:)

Returns a Boolean value that indicates whether the archive contains a value for a given key within the current decoding scope.

Declaration

func containsValue(forKey key: String) -> Bool

Parameters

  • key:

    A key in the archive within the current decoding scope. key must not be nil.

Return Value

true if the archive contains a value for key within the current decoding scope, otherwise false.

See Also

Decoding Data