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

# Deprecated symbols

Symbols that buttons no longer support.

## Topics

### Title effects

[`@property (nonatomic, strong) UIFont * font;`](/documentation/UIKit/UIButton/font)

The font used to display text on the button.

[`@property (nonatomic) NSLineBreakMode lineBreakMode;`](/documentation/UIKit/UIButton/lineBreakMode)

The line break mode to use when drawing text.

[`@property (nonatomic) CGSize titleShadowOffset;`](/documentation/UIKit/UIButton/titleShadowOffset)

The offset of the shadow used to display the receiver’s title.

[`var reversesTitleShadowWhenHighlighted: Bool`](/documentation/UIKit/UIButton/reversesTitleShadowWhenHighlighted)

A Boolean value that determines whether the title shadow changes when the button is highlighted.

### Button presentation

[`var adjustsImageWhenHighlighted: Bool`](/documentation/UIKit/UIButton/adjustsImageWhenHighlighted)

A Boolean value that determines whether the image changes when the button is highlighted.

[`var adjustsImageWhenDisabled: Bool`](/documentation/UIKit/UIButton/adjustsImageWhenDisabled)

A Boolean value that determines whether the image changes when the button is disabled.

[`var showsTouchWhenHighlighted: Bool`](/documentation/UIKit/UIButton/showsTouchWhenHighlighted)

A Boolean value that determines whether tapping the button causes it to glow.

### Edge insets

[`var contentEdgeInsets: UIEdgeInsets`](/documentation/UIKit/UIButton/contentEdgeInsets)

The inset or outset margins for the rectangle surrounding all of the button’s content.

[`var titleEdgeInsets: UIEdgeInsets`](/documentation/UIKit/UIButton/titleEdgeInsets)

The inset or outset margins for the rectangle around the button’s title text.

[`var imageEdgeInsets: UIEdgeInsets`](/documentation/UIKit/UIButton/imageEdgeInsets)

The inset or outset margins for the rectangle around the button’s image.

### Dimensions

[`func backgroundRect(forBounds: CGRect) -> CGRect`](/documentation/UIKit/UIButton/backgroundRect(forBounds:))

Returns the rectangle in which the receiver draws its background.

[`func contentRect(forBounds: CGRect) -> CGRect`](/documentation/UIKit/UIButton/contentRect(forBounds:))

Returns the rectangle in which the receiver draws its entire content.

[`func titleRect(forContentRect: CGRect) -> CGRect`](/documentation/UIKit/UIButton/titleRect(forContentRect:))

Returns the rectangle in which the receiver draws its title.

[`func imageRect(forContentRect: CGRect) -> CGRect`](/documentation/UIKit/UIButton/imageRect(forContentRect:))

Returns the rectangle in which the receiver draws its image.



---

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)