<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/drawing-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 enumerations

[`enum UILineBreakMode : NSInteger;`](/documentation/UIKit/UILineBreakMode)

Options for wrapping and truncating text.

[`enum UITextAlignment : NSInteger;`](/documentation/UIKit/UITextAlignment)

Options for aligning text horizontally.

### Deprecated functions

[`func UIGraphicsBeginImageContextWithOptions(CGSize, Bool, CGFloat)`](/documentation/UIKit/UIGraphicsBeginImageContextWithOptions(_:_:_:))

Creates a bitmap-based graphics context with the specified options.

### Deprecated constants

[`extern NSString * const UITextAttributeFont;`](/documentation/UIKit/UITextAttributeFont)

The key to the font in a text attributes dictionary.

[`extern NSString * const UITextAttributeTextColor;`](/documentation/UIKit/UITextAttributeTextColor)

The key to the text color in a text attributes dictionary.

[`extern NSString * const UITextAttributeTextShadowColor;`](/documentation/UIKit/UITextAttributeTextShadowColor)

The key to the text shadow color in a text attributes dictionary.

[`extern NSString * const UITextAttributeTextShadowOffset;`](/documentation/UIKit/UITextAttributeTextShadowOffset)

The key to the offset for the text shadow in a text attributes dictionary.



---

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)