Where to Go From Here?
You can download the completed project files by clicking Download Materials at the top or bottom of the tutorial.
You’ve learned a lot about managing the search experience in SwiftUI apps. This includes:
- Using
searchable(text:placement:prompt:)
to search any list.
- Filtering your list with the search query using
.onChange(of:perform:)
, .onSubmit(of:_:)
or @Binding
.
- Using
suggestions
to offer text and non-text search suggestions.
- Using
placement
to change the search field placement in the view hierarchy.
Drag and drop is another feature that becomes simple with SwiftUI. To learn more about it, check out the Drag and Drop Tutorial for SwiftUI.
If you want to learn how to make your SwiftUI app safer by using the async/await method over the old GCD concurrency, check out async/await in SwiftUI.
Swifty enjoys the new search feature you added to the Chef Secrets app, and I hope you enjoyed implementing it while reading this tutorial. If you have any comments or questions, feel free to join in the forum discussion below!