Post

Replies

Boosts

Views

Activity

Reply to AVSpeechSynthesizer Broken on iOS 17
I've had some success by moving the synthesizer out as a global property. var synthesizer = AVSpeechSynthesizer() class TextToSpeechPlayer: NSObject { //private var synthesizer = AVSpeechSynthesizer() override init() { super.init() prepareAudioSession() synthesizer.delegate = self } deinit { disableAudioSession() }
Apr ’24
Reply to How to test handleActiveWorkoutRecovery?
Just call it directly. // it appears handleActiveWorkoutRecovery isn't called, so we are updating the name, and calling it directly. func checkForActiveWorkoutSession() { HealthStoreManager.shared.healthStore.recoverActiveWorkoutSession { (session, error) in if let session { Crashlytics.crashlytics().record(error: NSError(domain: "Workout Recovery", code: 00, userInfo: nil)) WorkoutFactory.shared.restoreSession(session) } } }
May ’24