Mercurial > public > geoquiz
diff GeoQuiz/Logic/HapticsClass.swift @ 14:136928bae534
add user profile
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 19 Oct 2022 07:56:33 +0200 |
parents | a793f33f05fb |
children |
line wrap: on
line diff
--- a/GeoQuiz/Logic/HapticsClass.swift Wed Oct 12 11:47:29 2022 +0200 +++ b/GeoQuiz/Logic/HapticsClass.swift Wed Oct 19 07:56:33 2022 +0200 @@ -12,14 +12,14 @@ private var user = User() func success() { - if user.settings.haptics { + if user.data.haptics { let generator = UINotificationFeedbackGenerator() generator.notificationOccurred(.success) } } func error() { - if user.settings.haptics { + if user.data.haptics { let generator = UINotificationFeedbackGenerator() generator.notificationOccurred(.error) }