making sure haptics work and complete even when starting to record
jeez soo many little things here
This commit is contained in:
@@ -18,7 +18,9 @@ class InnerCircleViewModel: ObservableObject {
|
|||||||
|
|
||||||
func startRecording() {
|
func startRecording() {
|
||||||
let recordingSession = AVAudioSession.sharedInstance()
|
let recordingSession = AVAudioSession.sharedInstance()
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
try recordingSession.setAllowHapticsAndSystemSoundsDuringRecording(true)
|
||||||
try recordingSession.setCategory(.playAndRecord, mode: .default)
|
try recordingSession.setCategory(.playAndRecord, mode: .default)
|
||||||
try recordingSession.setActive(true)
|
try recordingSession.setActive(true)
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user