Animation and Haptics

Provide feedback to users using view-based animations and haptics.


Content Animations

Property-Based Animations

Create animations by changing the properties of a view.

View Controller Transitions

Define custom transitions from one view controller to another.

Physics-Based Animations

UIKit Dynamics

Apply physics-based animations to your views.

Parallax Effects

Motion Effects

Add subtle motion to views to provide a 3D appearance.

Haptic Feedback

Provide haptic feedback in response to specific types of events.

class UIFeedbackGenerator

The abstract superclass for all feedback generators.

class UIImpactFeedbackGenerator

A concrete UIFeedbackGenerator subclass that creates haptics to simulate physical impacts.

class UINotificationFeedbackGenerator

A concrete UIFeedbackGenerator subclass that creates haptics to communicate successes, failures, and warnings.

class UISelectionFeedbackGenerator

A concrete UIFeedbackGenerator subclass that creates haptics to indicate a change in selection.

See Also

User Interface

Views and Controls

Present your content onscreen and define the interactions allowed with that content.

View Management

Manage your interface using view controllers and facilitate navigation around different screens of content.

System View Controllers

Use the built-in UIKit view controllers to pick images, edit videos, share content, print files, and much more.

Drag and Drop

Bring drag and drop to your app by using interaction APIs with your views.


Make your app more accessible to users with disabilities.

Windows and Screens

Provide a container for your view hierarchies and other content.