Since iOS 16, we can customize the background of a navigationBar easily with:
.toolbarBackground(barBackgroundGradient, for: .navigationBar)
.toolbarBackground(.visible, for: .navigationBar)
It's working well.
However, I can't make it working for a bottom toolbar:
.toolbarBackground(barBackgroundGradient, for: .bottomBar)
.toolbarBackground(.visible, for: .bottomBar)
It's compiling but nothing changes on the app.
Looking at developer documentation, it should work...
I tried also that:
.toolbarBackground(barBackgroundGradient, for: .navigationBar, .bottomBar)
It doesn't change anything.
Any idea ?