[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 15/69: hapticFeedback
From: |
gnunet |
Subject: |
[taler-taler-ios] 15/69: hapticFeedback |
Date: |
Fri, 19 Jan 2024 09:01:48 +0100 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 52494d6349340e56b0e259d91be37c815c32f6b5
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Jan 3 17:39:54 2024 +0100
hapticFeedback
---
TalerWallet1/Helper/Controller+playSound.swift | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/TalerWallet1/Helper/Controller+playSound.swift
b/TalerWallet1/Helper/Controller+playSound.swift
index 8f83435..c86858b 100644
--- a/TalerWallet1/Helper/Controller+playSound.swift
+++ b/TalerWallet1/Helper/Controller+playSound.swift
@@ -11,15 +11,28 @@ extension Controller {
@MainActor
func hapticNotification(_ feedbackType:
UINotificationFeedbackGenerator.FeedbackType) {
if useHaptics {
+ /// call when a notification is displayed, passing the
corresponding type
UINotificationFeedbackGenerator().notificationOccurred(feedbackType)
}
}
@MainActor
func hapticFeedback(_ feedbackStyle:
UIImpactFeedbackGenerator.FeedbackStyle) {
+ /// call when your UI element impacts something else
UIImpactFeedbackGenerator(style: feedbackStyle).impactOccurred()
}
+ @MainActor
+ func hapticFeedback(intensity: CGFloat) {
+ /// call when your UI element impacts something else with a specific
intensity [0.0, 1.0]
+ UIImpactFeedbackGenerator().impactOccurred(intensity: intensity)
+ }
+
+ @MainActor
+ func hapticFeedback() {
+ /// call when the selection changes (not on initial selection)
+ UISelectionFeedbackGenerator().selectionChanged()
+ }
/// 0 = failure, 1 = received, 2 = sent
@MainActor func playSound(_ number: Int) {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 20/69: button color if disabled, (continued)
- [taler-taler-ios] 20/69: button color if disabled, gnunet, 2024/01/19
- [taler-taler-ios] 10/69: Exchanges->Banking, gnunet, 2024/01/19
- [taler-taler-ios] 32/69: Warnings for tx buttons, gnunet, 2024/01/19
- [taler-taler-ios] 16/69: remove about protocols, gnunet, 2024/01/19
- [taler-taler-ios] 18/69: ToS for P2P, gnunet, 2024/01/19
- [taler-taler-ios] 29/69: clearDb (instead of reset), gnunet, 2024/01/19
- [taler-taler-ios] 27/69: use minor for Status, gnunet, 2024/01/19
- [taler-taler-ios] 14/69: remove Apple Sounds, gnunet, 2024/01/19
- [taler-taler-ios] 21/69: TransactionDone popToRootView, gnunet, 2024/01/19
- [taler-taler-ios] 09/69: API 2:0:1, gnunet, 2024/01/19
- [taler-taler-ios] 15/69: hapticFeedback,
gnunet <=
- [taler-taler-ios] 08/69: fixes, gnunet, 2024/01/19
- [taler-taler-ios] 11/69: Landscape, gnunet, 2024/01/19
- [taler-taler-ios] 17/69: Summary in ThreeAmountsV, gnunet, 2024/01/19
- [taler-taler-ios] 50/69: txStates, gnunet, 2024/01/19
- [taler-taler-ios] 24/69: dbg+cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 13/69: definitions, gnunet, 2024/01/19
- [taler-taler-ios] 23/69: aborting Notification, gnunet, 2024/01/19
- [taler-taler-ios] 28/69: AccountRestriction, gnunet, 2024/01/19
- [taler-taler-ios] 60/69: P2P Expiration Timestamp, gnunet, 2024/01/19
- [taler-taler-ios] 26/69: Layout transactions, gnunet, 2024/01/19