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

[`class func beginAnimations(String?, context: UnsafeMutableRawPointer?)`](/documentation/UIKit/UIView/beginAnimations(_:context:))

Marks the beginning of a begin/commit animation block.

[`class func commitAnimations()`](/documentation/UIKit/UIView/commitAnimations())

Marks the end of a begin/commit animation block and schedules the animations for execution.

[`class func setAnimationStart(Date)`](/documentation/UIKit/UIView/setAnimationStart(_:))

Sets the start time for the current animation block.

[`class func setAnimationsEnabled(Bool)`](/documentation/UIKit/UIView/setAnimationsEnabled(_:))

Sets whether animations are enabled.

[`class func setAnimationDelegate(Any?)`](/documentation/UIKit/UIView/setAnimationDelegate(_:))

Sets the delegate for any animation messages.

[`class func setAnimationWillStart(Selector?)`](/documentation/UIKit/UIView/setAnimationWillStart(_:))

Sets the message to send to the animation delegate when the animation starts.

[`class func setAnimationDidStop(Selector?)`](/documentation/UIKit/UIView/setAnimationDidStop(_:))

Sets the message to send to the animation delegate when animation stops.

[`class func setAnimationDuration(TimeInterval)`](/documentation/UIKit/UIView/setAnimationDuration(_:))

Sets the duration (measured in seconds) of the animations in an animation block.

[`class func setAnimationDelay(TimeInterval)`](/documentation/UIKit/UIView/setAnimationDelay(_:))

Sets the amount of time (in seconds) to wait before animating property changes within an animation block.

[`class func setAnimationCurve(UIView.AnimationCurve)`](/documentation/UIKit/UIView/setAnimationCurve(_:))

Sets the curve to use when animating property changes within an animation block.

[`class func setAnimationRepeatCount(Float)`](/documentation/UIKit/UIView/setAnimationRepeatCount(_:))

Sets the number of times animations within an animation block repeat.

[`class func setAnimationRepeatAutoreverses(Bool)`](/documentation/UIKit/UIView/setAnimationRepeatAutoreverses(_:))

Sets whether the animations within an animation block automatically reverse themselves.

[`class func setAnimationBeginsFromCurrentState(Bool)`](/documentation/UIKit/UIView/setAnimationBeginsFromCurrentState(_:))

Sets whether the animation should begin playing from the current state.

[`class func setAnimationTransition(UIView.AnimationTransition, for: UIView, cache: Bool)`](/documentation/UIKit/UIView/setAnimationTransition(_:for:cache:))

Sets a transition to apply to a view during an animation block.

[`class var areAnimationsEnabled: Bool`](/documentation/UIKit/UIView/areAnimationsEnabled)

Returns a Boolean value indicating whether animations are enabled.

[`func forBaselineLayout() -> UIView`](/documentation/UIKit/UIView/forBaselineLayout())

Returns a view used to satisfy baseline constraints.

### Deprecated properties

[`@property (nonatomic) CGRect contentStretch;`](/documentation/UIKit/UIView/contentStretch)

The rectangle that defines the stretchable and nonstretchable regions of a view.



---

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)