Check out example codes for "navigationview hide header swiftui". It will help you in understanding the concepts better.

Code Example 1

.navigationBarHidden(true)
.navigationBarTitle(Text("Home"))
.edgesIgnoringSafeArea([.top, .bottom])

Learn ReactJs, React Native from akashmittal.com