Reduce progressive search delay

// FREEBIE
This commit is contained in:
Michael Kirk 2017-11-02 15:47:27 -04:00
parent a08bd0980c
commit ad8c1db689

View file

@ -425,7 +425,7 @@ class GifPickerViewController: OWSViewController, UISearchBarDelegate, UICollect
// Do progressive search after a delay.
progressiveSearchTimer?.invalidate()
progressiveSearchTimer = nil
let kProgressiveSearchDelaySeconds = 2.0
let kProgressiveSearchDelaySeconds = 1.0
progressiveSearchTimer = WeakTimer.scheduledTimer(timeInterval: kProgressiveSearchDelaySeconds, target: self, userInfo: nil, repeats: true) { [weak self] _ in
guard let strongSelf = self else {
return