Mercurial > public > simoleon
comparison Simoleon/Jobs/HapticsController.swift @ 154:8afba86ab8dd
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 25 Aug 2021 10:43:12 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
153:2590ee472aa9 | 154:8afba86ab8dd |
---|---|
1 // | |
2 // SimpleSuccess.swift | |
3 // Simoleon | |
4 // | |
5 // Created by Dennis Concepción Martín on 20/07/2021. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 class HapticsController { | |
11 | |
12 /* | |
13 Default haptic for success action | |
14 */ | |
15 func simpleSuccess() { | |
16 let generator = UINotificationFeedbackGenerator() | |
17 generator.notificationOccurred(.success) | |
18 } | |
19 } |