---
title: "shouldArchiveValue(forKey:)"
framework: quartzcore
role: symbol
role_heading: Instance Method
path: "quartzcore/calayer/shouldarchivevalue(forkey:)"
---

# shouldArchiveValue(forKey:)

Returns a Boolean indicating whether the value of the specified key should be archived.

## Declaration

```swift
func shouldArchiveValue(forKey key: String) -> Bool
```

## Parameters

- `key`: The name of one of the receiver’s properties.

## Return Value

Return Value true if the specified property should be archived or false if it should not.

## Discussion

Discussion The default implementation returns true.

## See Also

### Key-value coding extensions

- [defaultValue(forKey:)](quartzcore/calayer/defaultvalue(forkey:).md)
