ios – Disable haptics on system controls


Is it potential to disable haptic suggestions app-wide?

I do know quite a lot of the app is just not “haptic-enabled” by default, however on a .contextMenu I can’t appear to show it off.

I’ve constructed a HapticManager the place I can management all my customized haptics or disable them in a settings toggle. Nevertheless, turning the toggle off solely controls my customized haptics and never the Apple ones.

closing class HapticsManager {
  personal let suggestions = UINotificationFeedbackGenerator()
  func set off(_ degree: UINotificationFeedbackGenerator.FeedbackType) {
    if UserDefaults.shared.bool(forKey: .settingsHapticsEnabled) {
      suggestions.notificationOccurred(degree)
    }
  }  
}

So I’m able to management the .set off() after I add it into actions like buttons or animations. However after I add in a Toggle() or a .contextMenu I’ve no management over these haptics.

I do not need to make the person confused – and likewise not add within the performance – if I can have an effect on the haptics.

Significantly within the HIG:

Make haptics non-compulsory. Let individuals flip off or mute haptics if they need, and ensure individuals can nonetheless take pleasure in your app with out them.

Is that this potential to do? In any other case is the one different approach to direct the person the way to disable System Haptics (https://www.techjunkie.com/turn-off-haptic-feedback-iphone/)

Every thing I’ve come throughout both has no solutions or solely talks about customized added haptics:

Leave a Reply