Initializer

init(style:)

Returns a newly initialized feedback generator.

Declaration

Parameters

style

A value representing the mass of the colliding objects. For a list of valid feedback styles, see the UIImpactFeedbackGenerator.FeedbackStyle enumeration.

Return Value

A newly initialized feedback generator.

Discussion

For more information on using feedback generators, see Using Feedback Generators.

See Also

Initializing the Feedback Generator

enum UIImpactFeedbackGenerator.FeedbackStyle

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