Shaking or vibrating an iOS device is possible using UIFeedbackGenerator.
Behind this effect stands a specific hardware component, the Taptic Engine, which consumes power. As a consequence, its usage should be carefully considered, especially if its added value is not clear.
Shaking or vibrating an iOS device is possible using
UIFeedbackGenerator
. Behind this effect stands a specific hardware component, the Taptic Engine, which consumes power. As a consequence, its usage should be carefully considered, especially if its added value is not clear.Noncompliant Code Example