How to create a semi-transparent Navigation Bar in SwiftUI?

There are many posts discussing how to make a transparent Navbar in SwiftUI, but there is no post on how to make a semi-transparent one, which is surprising to me as its a very common pattern on Apple's default apps. For example the Notes app. 

Can anyone help on how to do this ideally. It should work for both light and dark mode.