Class

UIImpactFeedbackGenerator

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

Overview

Use impact feedback to indicate that an impact has occurred. For example, you might trigger impact feedback when a user interface object collides with another object or snaps into place.

For more information, see Using Feedback Generators.

Topics

Initializing the Feedback Generator

init(style: UIImpactFeedbackStyle)

Returns a newly initialized feedback generator.

enum UIImpactFeedbackStyle

The mass of the objects in the collision simulated by a UIImpactFeedbackGenerator object.

Reporting Impacts

func impactOccurred()

Triggers impact feedback.

Relationships

Inherits From

See Also

Haptic Feedback

class UIFeedbackGenerator

The abstract superclass for all feedback generators.

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.