Home > front end >  SwiftUI Form sections separator
SwiftUI Form sections separator

Time:06-14

How could I add a separator between sections in a Form? Is it possible in general? I tried a divider but it looks bad.

Divider

What needed

Above is what I want to achieve.

CodePudding user response:

You could add the divider in the footer of the section

Section {
    //your content
} header: {
    //your header
} footer: {
    VStack {
        Divider()
    }
}
  • Related