---
title: "access(_:keyPath:)"
framework: observation
role: symbol
role_heading: Instance Method
path: "observation/observationregistrar/access(_:keypath:)"
---

# access(_:keyPath:)

Registers access to a specific property for observation.

## Declaration

```swift
func access<Subject, Member>(_ subject: Subject, keyPath: KeyPath<Subject, Member>) where Subject : Observable
```

## Parameters

- `subject`: An instance of an observable type.
- `keyPath`: The key path of an observed property.

## See Also

### Identifying transactional access

- [withMutation(of:keyPath:_:)](observation/observationregistrar/withmutation(of:keypath:_:).md)
