A Boolean value indicating whether the transition is explicitly animated.
Required.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- UIKit
Declaration
@property(nonatomic, readonly, getter=isAnimated) BOOL animated;
Discussion
The value of this property is NO
for custom transitions—transitions where the view controller's modal
property is set to UIModal
—even when the transition is started by a call to the animate
method. In nearly all other cases, the value of this property is YES
.