Version 1.0.2
HapticFeedback
You can enable on both DetailButton
and CompletionButton
haptic feedback when the user pressed one of these buttons. Either by setting the property or passing it to the initializer.
// Impact Feedback
button.hapticFeedback = .impact
// Selection Feedback
button.hapticFeedback = .selection
// Notification Feedback with type
let completionButton = WhatsNewViewController.CompletionButton(
title: "Continue",
action: .dismiss,
hapticFeedback: .notification(.success)
)
☝️ In default the
HapticFeedback
isnil
indicating no haptic feedback should be executed.