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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software