/Debouncer

Primary LanguageSwift

Debouncer

Why need Debouncer

Have you ever make a app to search something? When ever user type a character into textfield you need to make a request. This is a point, so when the user type really fast, you just only make a request when user stop the typing or typing slow down

How to install

pod 'Debouncer', '0.0.2'

How it works?

let debouncer = Debouncer(delay: 0.25) // You can pass the delay value here

debouncer.dispatch {
   // Your request here
}