When using .scrollEdgeEffectStyle(.hard, for: .top)
, search bar background doesn't match with . safeAreaBar
view background (you can see that is is darker than the rest of the toolbar). Please find the screenshot in the attachment
- iOS 26 RC
- Light Mode
- Feedback ID - FB19768159
import SwiftUI
struct ContentView: View {
@State private var count = 0
var body: some View {
NavigationStack {
ScrollView(.vertical) {
ForEach(0..<100) { index in
Text("\(index)")
.background(.red)
}
}
.scrollEdgeEffectStyle(.hard, for: .top)
.searchable(
text: .constant(""),
placement: .navigationBarDrawer(displayMode: .always)
)
.safeAreaBar(edge: .top) {
Text("Safe area bar")
}
}
}
}
#Preview {
ContentView()
}