Skip to content

[Technical Questions] #21

Jan 25, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @katieliuu,

The reason this is happening is that in your preview, you are just looking at KatieLiuView, but when you navigate to that view from within the app, you're already inside a NavigationView and KatieLiuView nests another NavigationView inside it. That is causing the extra padding to show up. If you remove the NavigationView that is wrapping your VStack in the code above (you don't need it), the extra space should disappear.

Vishnu

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@PSchmiedmayer
Comment options

@katieliuu
Comment options

katieliuu Jan 26, 2023
Collaborator Author

@vishnuravi
Comment options

@katieliuu
Comment options

katieliuu Jan 26, 2023
Collaborator Author

Answer selected by katieliuu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants