Login required for access
In order to watch this lesson, you'll need to login to the website.
TextField Auto Searching with Combine
Maps UIKit SwiftUI
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.

Comments (1)
4 years ago
HELP & SUPPORT