Haptics have for a long time been part of the iPhone experience, so much so that SwiftUI implements them as standard in some views. In a recent tutorial about adding swipe actions for a to-do list, without planning for it, haptics were part of this thanks to SwiftUI.
For the most part you can leave the default haptics as they are because iPhone users are familiar with haptics and what they mean. If you start to change them for a swipe, then it can just add confusion. However, SwiftUI does include the ability to make some changes to them with sensoryFeedback(). We’ll take a look at these in this tutorial to see what sensoryFeedback can do.
[Read more…]