Unlock This Episode
Our Free plan includes 1 subscriber-only episode of your choice, plus weekly updates from our newsletter.
Stephen: It’s pretty cool to see just how easy it was to use Apple’s speech recognizer API in order to get a live feed of transcription data while running our meeting. And we could put all that logic in an effect so that our reducer can remain a simple function, and our state can remain a simple value type.
Brandon: Now let’s actually do something with these transcripts.
Add error handling for the speech recognition task. If the task fails, show the user an error with options to abandon the meeting, resume the meeting without transcription, or to retry speech transcription.
Write tests against the failure and each resolution.
Enhance the logic of the feature so that if they retry speech transcription, it is appended to the transcript from the task that failed rather than written over.
Add error handling for when persisted data fails to load.
Add error handling for when persisted data fails to save.
Beef up the
DataManager.mock. It is currently limited to saving and loading a single value with no regard to the URL passed in. Instead, have it hold onto a dictionary mapping URL to value so that it can emulate an entire file system.
The Composable Architecture is a library for building applications in a consistent and understandable way, with composition, testing and ergonomics in mind.
Learn the essentials of iOS app development by building a fully functional app using SwiftUI.