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 Controllers

Manage your interface using view controllers and facilitate navigation around your app's content.

View Layout

Use stack views to lay out the views of your interface automatically. Use Auto Layout when you require precise placement of your views.

Appearance Customization

Add Dark Mode support to your app, customize the appearance of bars, and use appearance proxies to modify your UI.

Windows and Screens

Provide a container for your view hierarchies and other content.