Type Safely

Type Safely

Use Feedback Generators To Vibrate An iPhone

Daily Coding 257

Type Safely's avatar
Type Safely
Mar 02, 2023
∙ Paid
Photo by Dima Solomin on Unsplash

The iPhone is capable of 9 kinds of haptic feedback that are built into subclasses of UIFeedbackGenerator.

When you change a selection in a Picker you get a light vibration from a UISelectionFeedbackGenerator. While there is only one way a selection can change, there are 3 kinds of notification vibration in a UINotificat…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture