---
title: NSAttributedString.TextEffectStyle
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsattributedstring/texteffectstyle
---

# NSAttributedString.TextEffectStyle

Constants for the type of effect to apply to the text.

## Declaration

```swift
struct TextEffectStyle
```

## Overview

Overview Use this constant as the value for the textEffect key.

## Topics

### Getting the style

- [letterpressStyle](foundation/nsattributedstring/texteffectstyle/letterpressstyle.md)

### Initializers

- [init(rawValue:)](foundation/nsattributedstring/texteffectstyle/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting text content attributes

- [NSAttributedString.Key](foundation/nsattributedstring/key.md)
- [NSAttributedString.TextHighlightStyle](foundation/nsattributedstring/texthighlightstyle.md)
- [NSAttributedString.TextHighlightColorScheme](foundation/nsattributedstring/texthighlightcolorscheme.md)
- [NSAttributedString.SpellingState](foundation/nsattributedstring/spellingstate.md)
- [NSUnderlineStyle](uikit/nsunderlinestyle.md)
- [NSWritingDirectionFormatType](uikit/nswritingdirectionformattype.md)
