Mercurial > public > simoleon
comparison Simoleon/Helpers/HapticsHelper.swift @ 162:f5de15e06c77
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 31 Aug 2021 13:04:28 +0100 |
parents | 84137052813d |
children |
comparison
equal
deleted
inserted
replaced
161:3913aff613e8 | 162:f5de15e06c77 |
---|---|
5 // Created by Dennis Concepción Martín on 20/07/2021. | 5 // Created by Dennis Concepción Martín on 20/07/2021. |
6 // | 6 // |
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 class Haptics { | 10 class HapticsHelper { |
11 | 11 |
12 // MARK: - Simple success | 12 // MARK: - Simple success |
13 func simpleSuccess() { | 13 func simpleSuccess() { |
14 let generator = UINotificationFeedbackGenerator() | 14 let generator = UINotificationFeedbackGenerator() |
15 generator.notificationOccurred(.success) | 15 generator.notificationOccurred(.success) |