Skip to content

Commit

Permalink
0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Mar 12, 2024
1 parent 2647867 commit e99a668
Show file tree
Hide file tree
Showing 153 changed files with 11,706 additions and 9 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion Examples/Search/Search/SearchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct SearchView: View {
Image(systemName: "magnifyingglass")
TextField(
"New York, San Francisco, ...",
text: Binding {
text: Binding {
state.searchQuery
} set: { text in
$state.searchQueryChanged(query: text)
Expand Down
5 changes: 5 additions & 0 deletions Examples/SpeechRecognition/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Speech Recognition

This application demonstrates how to work with a complex dependency in the VDStore. It uses the `SFSpeechRecognizer` API from the `Speech` framework to listen to audio on the device and live-transcribe it to the UI.

The `SFSpeechRecognizer` class is a complex dependency, and if we used it freely in our application we wouldn't be able to test any of that code. So, instead, we wrap the API in a `SpeechClient` type that exposes asynchronous endpoints for accessing the underlying `SFSpeechRecognizer` class. Then we can use it in the reducer in an understandable way, _and_ we can write tests for the reducer.
Loading

0 comments on commit e99a668

Please sign in to comment.