twostraws / Unwrap

Learn Swift interactively on your iPhone.
https://www.hackingwithswift.com
Other
2.3k stars 312 forks source link

Added speak functionality for the studyTextView #166

Closed AmolRai closed 4 years ago

AmolRai commented 4 years ago

Added speak functionality for the studyTextView in StudyViewController.swift file so when the user shake the device the system will start speaking the text from the studyTextView and if user shake the device again the system will stop speaking and vice-versa.

So I think this is a cool feature who don't want to read the text they can simply shake the device and start learning.

twostraws commented 4 years ago

Thank you for your contribution! There is already a video where the text is spoken, while also showing the code in action. I also have doubts about discoverability – I don't think folks would expect to shake their phone to get audio output, nor would they think to shake it again to stop.