<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedString/TextEffectStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@T@NSTextEffectStyle"
  },
  "title" : "NSAttributedString.TextEffectStyle"
}
-->

# NSAttributedString.TextEffectStyle

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

```
struct TextEffectStyle
```

## Overview

Use this constant as the value for the [`textEffect`](/documentation/Foundation/NSAttributedString/Key/textEffect) key.

## Topics

### Getting the style

[`static let letterpressStyle: NSAttributedString.TextEffectStyle`](/documentation/Foundation/NSAttributedString/TextEffectStyle/letterpressStyle)

A graphical text effect that gives glyphs the appearance of letterpress printing, which involves pressing the type into the paper.

### Initializers

[`init(rawValue: String)`](/documentation/Foundation/NSAttributedString/TextEffectStyle/init(rawValue:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)