|
|
@ -24,7 +24,6 @@ class EmojiPickerSheet: BaseVC {
|
|
|
|
result.tintColor = Colors.text
|
|
|
|
result.tintColor = Colors.text
|
|
|
|
result.backgroundColor = .clear
|
|
|
|
result.backgroundColor = .clear
|
|
|
|
result.delegate = self
|
|
|
|
result.delegate = self
|
|
|
|
result.showsCancelButton = true
|
|
|
|
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|
}()
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
|
@ -125,5 +124,15 @@ extension EmojiPickerSheet: UISearchBarDelegate {
|
|
|
|
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
|
|
|
|
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
|
|
|
|
collectionView.searchText = searchText
|
|
|
|
collectionView.searchText = searchText
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func searchBarShouldBeginEditing(_ searchBar: UISearchBar) -> Bool {
|
|
|
|
|
|
|
|
searchBar.showsCancelButton = true
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
|
|
|
|
|
|
|
|
searchBar.showsCancelButton = false
|
|
|
|
|
|
|
|
searchBar.resignFirstResponder()
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|