SwiftUI Search: Getting Started

Learn how to use the searchable modifier to quickly add search capability to your SwiftUI apps. By Mina H. Gerges.

5 (4) · 3 Reviews

Download materials
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

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!