<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/nsunderlinestyle-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review symbols that are no longer in active development, and their recommended replacements.

## Overview

Although these symbols are available for use, Apple is no longer actively developing them, and may remove them in a future release. Apple recommends moving away from these symbols and using their indicated replacements instead. Check the individual symbol pages for the recommended replacements.

## Topics

### Deprecated constants

[`static const NSUnderlineStyle NSUnderlinePatternSolid;`](/documentation/UIKit/NSUnderlinePatternSolid)

A solid line.

[`static const NSUnderlineStyle NSUnderlinePatternDot;`](/documentation/UIKit/NSUnderlinePatternDot)

A line of dots.

[`static const NSUnderlineStyle NSUnderlinePatternDash;`](/documentation/UIKit/NSUnderlinePatternDash)

A line of dashes.

[`static const NSUnderlineStyle NSUnderlinePatternDashDot;`](/documentation/UIKit/NSUnderlinePatternDashDot)

A line of alternating dashes and dots.

[`static const NSUnderlineStyle NSUnderlinePatternDashDotDot;`](/documentation/UIKit/NSUnderlinePatternDashDotDot)

A line of alternating dashes and two dots.

[`static const NSUnderlineStyle NSUnderlineByWord;`](/documentation/UIKit/NSUnderlineByWord)

A line only beneath or through words, not whitespace.



---

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)