dismiss keyboard when scrolling after auto-search

// FREEBIE
This commit is contained in:
Michael Kirk 2017-10-19 19:51:12 -07:00
parent be51776d82
commit 6db5895269
1 changed files with 6 additions and 0 deletions

View File

@ -268,6 +268,12 @@ class GifPickerViewController: OWSViewController, UISearchBarDelegate, UICollect
}
}
// MARK: - UIScrollViewDelegate
func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
self.searchBar.resignFirstResponder()
}
// MARK: - UICollectionViewDataSource
public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {