Header Blur Effect on visionOS SwiftUI

Hi,

I'm looking to build something similar to the header blur in the App Store and Apple TV app settings. Does anyone know the best way to achieve this so that when there is nothing behind the header it looks the same as the rest of the view background but when content goes underneath it has a blur effect. I've seen .scrollEdgeEffect on IOS26 is there something similar for visionOS?

Thanks!

Header Blur Effect on visionOS SwiftUI
 
 
Q