I want to hide my NavigationBar
while scrolling, actually It must hide automatically but when I tried with multiple views It doesn\'t work. Also, It works when
Just idea, scratchy... try to put your custom views inside List
as below (I know it will work, but I'm not sure if autohiding will work)
NavigationView {
List {
SearchBar(searchText: $viewModel.searchText)
StatusView(status: $viewModel.status)
Divider()
ForEach (0...viewModel.characters.results.count, id: \.self) { index in
...