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

# didSet(_:keyPath:)

A property observation called after setting the value of the subject.

## Declaration

```swift
func didSet<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

### Receiving change notifications

- [willSet(_:keyPath:)](observation/observationregistrar/willset(_:keypath:).md)
