Mercurial > public > geoquiz
comparison GeoQuiz/Logic/Haptics.swift @ 0:413e2d21333e
first commit
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 20 Sep 2022 08:13:26 +0200 |
parents | |
children | 3540c7efc216 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:413e2d21333e |
---|---|
1 // | |
2 // Haptics.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 18/9/22. | |
6 // | |
7 | |
8 import Foundation | |
9 import SwiftUI | |
10 | |
11 func hapticSuccess() { | |
12 let generator = UINotificationFeedbackGenerator() | |
13 generator.notificationOccurred(.success) | |
14 } | |
15 | |
16 func hapticError() { | |
17 let generator = UINotificationFeedbackGenerator() | |
18 generator.notificationOccurred(.error) | |
19 } |