diff --git a/Shared/Extensions/SearchBarView.swift b/Shared/Extensions/SearchBarView.swift index ac4b8f32..4e565210 100644 --- a/Shared/Extensions/SearchBarView.swift +++ b/Shared/Extensions/SearchBarView.swift @@ -16,13 +16,21 @@ struct SearchBar: View { var body: some View { HStack(spacing: 8) { + // TODO: Clean up the statement as previously done + // in commit 93a25eb9c43eddd03e09df87722c086fb6cb6da4 + // after Swift 5.5 is released. + #if os(iOS) TextField(NSLocalizedString("Search...", comment: ""), text: $text) .padding(8) .padding(.horizontal, 16) - #if os(iOS) .background(Color(.systemGray6)) - #endif .cornerRadius(8) + #else + TextField(NSLocalizedString("Search...", comment: ""), text: $text) + .padding(8) + .padding(.horizontal, 16) + .cornerRadius(8) + #endif if !text.isEmpty { Button(action: { self.text = ""