trying to fix haptics not working but going to go back and test older version
This commit is contained in:
@@ -111,6 +111,7 @@ struct CircleGridView: View {
|
|||||||
print("activated long press!")
|
print("activated long press!")
|
||||||
self.selectedFriendIndex = friendId
|
self.selectedFriendIndex = friendId
|
||||||
|
|
||||||
|
// TODO: haptics stopped working again
|
||||||
self.activateHaptics()
|
self.activateHaptics()
|
||||||
|
|
||||||
self.record()
|
self.record()
|
||||||
@@ -466,12 +467,11 @@ extension CircleGridView {
|
|||||||
// haptics for recording
|
// haptics for recording
|
||||||
print("got haptics on")
|
print("got haptics on")
|
||||||
let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
|
let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
|
||||||
|
impactHeavy.prepare()
|
||||||
impactHeavy.impactOccurred()
|
impactHeavy.impactOccurred()
|
||||||
}
|
}
|
||||||
|
|
||||||
private func record() {
|
private func record() {
|
||||||
// call parent view model/environment object vm functions
|
|
||||||
|
|
||||||
self.innerCircleVM.startRecording()
|
self.innerCircleVM.startRecording()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user