I'm trying to control a NavigationBar shadow in SwiftUI but unsuccessfully.
I want only change a color and size of shadow.
NavigationStack {
List {
Text ("Item 1")
Text ("Item 2")
Text ("Item 3")
}
.navigationTitle("Settings")
.navigationBarTitleDisplayMode(.inline)
.toolbarColorScheme(.light, for: .navigationBar)
.toolbarBackground(.white, for: .navigationBar)
.toolbarBackground(.visible, for: .navigationBar)
}
All variants with init and UINavigationBarAppearance and appearance.shadowImage don't work