HomeiOS DevelopmentFind out how to Get rid of Kind Padding in NavigationStack

Find out how to Get rid of Kind Padding in NavigationStack


I’ve a Kind being loaded inside a Navigation Stack and am exhibiting a picture and title within the first kind part with the code under:

Kind {
    Part {
        VStack {
            Picture("AboutIcon")
                .resizable()
                .body(width: 96, peak: 96)
                .clipShape(RoundedRectangle(cornerRadius: 16))
            Textual content("LinkSwing")
                .font(.headline)
        }
        .body(maxWidth: .infinity)
    }
    .listRowBackground(Coloration(.systemGroupedBackground))
}

When rendered, there may be vital high and backside padding surrounding the Part, highlighted in purple within the picture under.

Find out how to Get rid of Kind Padding in NavigationStack

I’ve tried numerous choices to set padding, edge insets, and so on., however haven’t discovered the proper choice or mixture to remove the pointless high and backside padding.

Any recommendations and/or ideas for the way I can diagnose comparable structure issues sooner or later are a lot appreciated – thanks!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments