---
title: "typingAttributes(in:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/attributedtextselection/typingattributes(in:)"
---

# typingAttributes(in:)

Returns the typing attributes for a corresponding text.

## Declaration

```swift
func typingAttributes(in text: AttributedString) -> AttributeContainer
```

## Discussion

Discussion The typing attributes are the attributes that will be applied to any new characters typed out by the user. note: The returned container may contain values for attributes that specify runBoundaries and thus might not actually get applied to new content.
