---
title: typingAttributes
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextview/typingattributes
---

# typingAttributes

The attributes to apply to new text that the user enters.

## Declaration

```swift
var typingAttributes: [NSAttributedString.Key : Any] { get set }
```

## Discussion

Discussion This dictionary contains the attribute keys (and corresponding values) to apply to newly typed text. When the text view’s selection changes, the contents of the dictionary are cleared automatically.

## See Also

### Related Documentation

- [isEditable](uikit/uitextview/iseditable.md)

### Configuring appearance attributes

- [font](uikit/uitextview/font.md)
- [textColor](uikit/uitextview/textcolor.md)
- [textAlignment](uikit/uitextview/textalignment.md)
- [linkTextAttributes](uikit/uitextview/linktextattributes.md)
- [borderStyle](uikit/uitextview/borderstyle-swift.property.md)
- [textHighlightAttributes](uikit/uitextview/texthighlightattributes.md)
- [drawTextHighlightBackground(for:origin:)](uikit/uitextview/drawtexthighlightbackground(for:origin:).md)
- [UITextView.BorderStyle](uikit/uitextview/borderstyle-swift.enum.md)
