Remove White Space NavigationView? iOS Foundations M5 Wrap Up

Move the modifier .navigationTitle("All Videos") inside the NavigationView and attach it to the closing brace of the VStack.

Remove the modifier .navigationBarHidden(true).

In future it would be beneficial to post your code as text rather than a screenshot.

To format the code nicely, place 3 back-ticks ``` on the line above your code and 3 back-ticks ``` on the line below your code. The 3 back-ticks must be the ONLY characters on the line. The back-tick character is located on the same keyboard key as the tilde character ~ (which is located below the Esc key). You can also highlight an entire code block and click the </> button on the toolbar to wrap the block for you.

This also makes it easier for anyone assisting as they can copy the code and carry out some testing.

1 Like