---
title: accessInstanceVariablesDirectly
framework: objectivec
role: symbol
role_heading: Type Property
path: objectivec/nsobject-swift.class/accessinstancevariablesdirectly
---

# accessInstanceVariablesDirectly

Returns a Boolean value that indicates whether the key-value coding methods should access the corresponding instance variable directly on finding no accessor method for a property.

## Declaration

```swift
class var accessInstanceVariablesDirectly: Bool { get }
```

## Return Value

Return Value YES if the key-value coding methods should access the corresponding instance variable directly on finding no accessor method for a property, otherwise NO.

## Discussion

Discussion The default returns YES. Subclasses can override it to return NO, in which case the key-value coding methods won’t access instance variables.
