Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS 16 beta 2 #12

Open
buenasuerte opened this issue Jun 27, 2022 · 2 comments
Open

IOS 16 beta 2 #12

buenasuerte opened this issue Jun 27, 2022 · 2 comments

Comments

@buenasuerte
Copy link

Worked fine up to iOS 15.6. I tested it on IOS 16 beta 2 on iPhone 12 Pro Max and I always get Thread 1: Fatal error : recordingSession is nil in EndRecording() in the following function when I release the speech button.

fileprivate func endRecording() {
guard let session = recordingSession else { preconditionFailure("recordingSession is nil in (#function)") }
recordingSession?.stopRecording()
delegate.onStopRecording(session: session)
self.viewComponentState = .pending
self.recordingSession = nil
}

@buenasuerte
Copy link
Author

it seems that StartRecording is never fetch after a longpress on the record button.
let longPress = LongPressGesture(minimumDuration: 60)
.onChanged { _ in
withAnimation(self.animation, self.startRecording)
}

@shengchl
Copy link

Can confirm. Seems like using a gesture as a trigger to start a session is too fragile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants