Commit 2064c03
committed
Haptic feedback via UIImpactFeedbackGenerator
Avoids code duplication by introducing a helper method, which is placed in Utilities for future purpose (providing haptic feedback from other controllers as well). The generator is made static and only created once to avoid feedback delays. The feedback is now a medium haptic one-time impact which comes right with touching the remote buttons.1 parent 008ea9c commit 2064c03
3 files changed
+16
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
| 589 | + | |
596 | 590 | | |
597 | 591 | | |
598 | 592 | | |
| |||
839 | 833 | | |
840 | 834 | | |
841 | 835 | | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
| 836 | + | |
849 | 837 | | |
850 | 838 | | |
851 | 839 | | |
| |||
929 | 917 | | |
930 | 918 | | |
931 | 919 | | |
| 920 | + | |
932 | 921 | | |
933 | 922 | | |
934 | 923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
978 | 990 | | |
979 | 991 | | |
980 | 992 | | |
| |||
0 commit comments