In order to view this lesson, you must purchase this course.
To support search for our SwiftUI application, we'll go ahead and add a TextField component into our UI. With this integrated, we'll then need to hook it up with a Bindable string somewhere. To make our code super clean, we'll create another @Published property inside of our View Model class. Again, this layer is going to keep track of everything that our UI needs to render. Finally, we can add a custom listener to our @Published properties by invoking debounce and sink. This way we don't over aggressively perform searches.