I have this simple code with a hidden NavigationBar but what I want is to show it when scrolling down. How can I do that?
struct ContentView: View {
var body: some View {
NavigationView {
ScrollView(showsIndicators: false) {
VStack {
ForEach(0 ..< 3) { _ in
Image(systemName: "rectangle.fill")
.resizable()
.aspectRatio(contentMode: .fill)
.padding()
}
}
}
.navigationBarTitle("Title Here", displayMode: .inline)
.navigationBarHidden(true)
}.edgesIgnoringSafeArea(.all)
}
}

