toolbarBackgroundVisibility(_:for:) | Apple Developer Documentation

Specifies the preferred visibility of backgrounds on a bar managed by SwiftUI.