---
title: "textViewDidChangeTypingAttributes(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextviewdelegate/textviewdidchangetypingattributes(_:)"
---

# textViewDidChangeTypingAttributes(_:)

Sent when a text view’s typing attributes change.

## Declaration

```swift
@MainActor optional func textViewDidChangeTypingAttributes(_ notification: Notification)
```

## Parameters

- `notification`: A notification named doc://com.apple.appkit/documentation/AppKit/NSTextView/didChangeTypingAttributesNotification.

## See Also

### Setting Text Attributes

- [textView(_:shouldChangeTextIn:replacementString:)](appkit/nstextviewdelegate/textview(_:shouldchangetextin:replacementstring:).md)
- [textView(_:shouldChangeTextInRanges:replacementStrings:)](appkit/nstextviewdelegate/textview(_:shouldchangetextinranges:replacementstrings:).md)
- [textView(_:shouldChangeTypingAttributes:toAttributes:)](appkit/nstextviewdelegate/textview(_:shouldchangetypingattributes:toattributes:).md)
