UISearchBar .minimal no background when compiled on Xcode 26

When compiled on Xcode 16.4.0:

When compiled on Xcode 26:

The code:

import SwiftUI

struct SearchBarController: UIViewRepresentable {
    
    @Binding var text: String
    var placeholderText: String
    
    class Coordinator: NSObject, UISearchBarDelegate {
        
        @Binding var text: String
        
        init(text: Binding<String>) {
            _text = text
        }
        
        func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
            text = searchText
        }
    }
    
    func makeUIView(context: Context) -> UISearchBar {
        
        let searchBar = UISearchBar(frame: .zero)
        searchBar.delegate = context.coordinator
        searchBar.placeholder = placeholderText
        searchBar.searchBarStyle = .minimal
        return searchBar
    }
    
    func updateUIView(_ uiView: UISearchBar, context: Context) {
        uiView.text = text
    }
    
    func makeCoordinator() -> SearchBarController.Coordinator {
        return Coordinator(text: $text)
    }
}

Standard components across the system now use the Liquid Glass design. See Adopting Liquid Glass to learn how the new material impacts your app.

This still doesn't really explain the change, since the documentation states "the search field is translucent" for UISearchBar.Style.minimal and not transparent.

Moreover, if I manually set UISearchBar.isTranslucent to true, it does not work either.

UISearchBar .minimal no background when compiled on Xcode 26
 
 
Q