fixed haptic ....wtf....need to understand every line...this is a lesson don't get frustrated

I don't know how audiosession works and so should learn about it before adding things like this
This commit is contained in:
talksik
2021-12-25 05:20:52 -08:00
parent 29cc87c2f9
commit 2d6087da35
@@ -24,10 +24,11 @@ class InnerCircleViewModel: ObservableObject {
init() {
do {
try audioSession.setAllowHapticsAndSystemSoundsDuringRecording(true)
try audioSession.setCategory(.playAndRecord, mode: .default)
try audioSession.setActive(true)
try audioSession.overrideOutputAudioPort(AVAudioSession.PortOverride.speaker) // allow playing in silent mode
try audioSession.setAllowHapticsAndSystemSoundsDuringRecording(true)
} catch {
print("Can not setup the Recording")
}