Contents

init(style:)

Creates an impact feedback generator with the specified style.

Declaration

init(style: UIImpactFeedbackGenerator.FeedbackStyle)

Parameters

  • style:

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

Return Value

A newly initialized feedback generator.

Discussion

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