Last active
February 14, 2019 00:11
-
-
Save myrickchow32/ec8e7f027cebb6eef3d0322fd22a79e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewWillDisappear(_ animated: Bool) { | |
super.viewWillDisappear(animated) | |
// Solution: Stop speaking to prevent blocking of ViewControler deinitialization | |
avSpeechSynthesizer.stopSpeaking(at: .immediate) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment