summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/Extensions/UISearchBar+Appearance.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/ios/MullvadVPN/Extensions/UISearchBar+Appearance.swift b/ios/MullvadVPN/Extensions/UISearchBar+Appearance.swift
index 065293575f..9aca1a6e15 100644
--- a/ios/MullvadVPN/Extensions/UISearchBar+Appearance.swift
+++ b/ios/MullvadVPN/Extensions/UISearchBar+Appearance.swift
@@ -36,6 +36,11 @@ extension UISearchBar {
func apply(to searchBar: UISearchBar) {
let textField = searchBar.searchTextField
+ searchBar.setImage(
+ UIImage(named: "IconCloseSml")?.withTintColor(leftViewTintColor),
+ for: .clear,
+ state: .normal
+ )
textField.leftView?.tintColor = leftViewTintColor
textField.tintColor = textColor
textField.textColor = textColor