Skip to content

Commit 8acd14d

Browse files
Diogo Simao Marquesfkuehne
authored andcommitted
VLCFavoriteListViewController: Properly empty the text field
The text field is now emptied when the user presses the "Cancel" button.
1 parent 2b79d7e commit 8acd14d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Network/Favorite/iOS/VLCFavoriteListViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Authors: Rizky Maulana <[email protected]>
99
* Eshan Singh <[email protected]>
1010
* Felix Paul Kühne <fkuehne # videolan.org>
11+
* Diogo Simao Marques <[email protected]>
1112
*
1213
* Refer to the COPYING file of the official project for license.
1314
*****************************************************************************/
@@ -298,6 +299,7 @@ extension VLCFavoriteListViewController: UISearchBarDelegate {
298299
func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
299300
searchBar.setShowsCancelButton(false, animated: true)
300301
searchBar.resignFirstResponder()
302+
searchBar.text = ""
301303
isSearching = false
302304
tableView.reloadData()
303305
}

0 commit comments

Comments
 (0)