Skip to content

Instantly share code, notes, and snippets.

@alltom
alltom / ContentView.swift
Created December 17, 2021 06:33
Is it this complicated to debounce a search box?
import SwiftUI
import Combine
struct ContentView: View {
@EnvironmentObject private var model: ViewModel
@StateObject private var searchQuery = SearchQueryDebouncer()
var body: some View {
List {