File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -166,11 +166,11 @@ class AppController {
166
166
167
167
case let . showErrorMessage( message) :
168
168
SVProgressHUD . showError ( withStatus: message)
169
- generateFeedback ( for: . error)
169
+ generateHapticFeedback ( for: . error)
170
170
171
171
case let . showSuccessMessage( message) :
172
172
SVProgressHUD . showSuccess ( withStatus: message)
173
- generateFeedback ( for: . success)
173
+ generateHapticFeedback ( for: . success)
174
174
175
175
case . showApplicationSettings:
176
176
guard let applicationSettingsURL = URL ( string: UIApplicationOpenSettingsURLString) else {
@@ -198,8 +198,7 @@ class AppController {
198
198
return topViewController ( presentedFrom: presentedViewController)
199
199
}
200
200
201
- // Provide haptic feedback to accompany success and error messages
202
- private func generateFeedback( for notificationFeedbackType: UINotificationFeedbackType ) {
201
+ private func generateHapticFeedback( for notificationFeedbackType: UINotificationFeedbackType ) {
203
202
if #available( iOS 10 . 0 , * ) {
204
203
let feedbackGenerator = UINotificationFeedbackGenerator ( )
205
204
feedbackGenerator. notificationOccurred ( notificationFeedbackType)
You can’t perform that action at this time.
0 commit comments