Skip to content

Commit 98961cf

Browse files
PM-8797: Use localized strings for search bar and cancel button (#738)
1 parent 8e25108 commit 98961cf

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

BitwardenShared/UI/Platform/Application/Appearance/UI.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public enum UI {
6363
UITabBar.appearance().standardAppearance = tabBarAppearance
6464
UITabBar.appearance().tintColor = Asset.Colors.primaryBitwarden.color
6565

66+
UIBarButtonItem.appearance(whenContainedInInstancesOf: [UISearchBar.self]).title = Localizations.cancel
6667
UISearchBar.appearance().tintColor = Asset.Colors.primaryBitwarden.color
6768
// Explicitly tint the image so that it does not assume the tint color assigned to the entire search bar.
6869
let image = Asset.Images.cancelRound.image

BitwardenShared/UI/Tools/Send/Send/SendCoordinator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ final class SendCoordinator: Coordinator, HasStackNavigator {
113113

114114
let viewController = UIHostingController(rootView: view)
115115
let searchController = UISearchController()
116+
searchController.searchBar.placeholder = Localizations.search
116117
searchController.searchResultsUpdater = searchHandler
117118

118119
stackNavigator?.push(

BitwardenShared/UI/Vault/Vault/VaultCoordinator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ final class VaultCoordinator: Coordinator, HasStackNavigator {
227227
)
228228
let viewController = UIHostingController(rootView: view)
229229
let searchController = UISearchController()
230+
searchController.searchBar.placeholder = Localizations.search
230231
searchController.searchResultsUpdater = searchHandler
231232

232233
stackNavigator?.push(

0 commit comments

Comments
 (0)