<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTUnderlineStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@E@CTUnderlineStyle"
  },
  "title" : "CTUnderlineStyle"
}
-->

# CTUnderlineStyle

Underline style specifiers.

```
struct CTUnderlineStyle
```

## Overview

You can apply these underline style specifiers to the value that you set with the [`kCTUnderlineStyleAttributeName`](/documentation/CoreText/kCTUnderlineStyleAttributeName) attribute. These specifiers control the underline style Core Text uses when rendering the text to which the attribute applies.

## Topics

### Constants

[`kCTUnderlineStyleNone`](/documentation/CoreText/CTUnderlineStyle/kCTUnderlineStyleNone)

A specifier that indicates not to draw an underline.

[`single`](/documentation/CoreText/CTUnderlineStyle/single)

A specifier that indicates to draw an underline consisting of a single line.

[`thick`](/documentation/CoreText/CTUnderlineStyle/thick)

A specifier that indicates to draw an underline consisting of a thick line.

[`double`](/documentation/CoreText/CTUnderlineStyle/double)

A specifier that indicates to draw an underline consisting of a double line.

### Initializers

[`init(rawValue:)`](/documentation/CoreText/CTUnderlineStyle/init(rawValue:))

Creates an underline style structure with the specified raw value.



---

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)