2

I try to build interface with tableview with lists in SwiftUI, but cannot figure out how to make tableview with empty spaces like this:

enter image description here

1 Answer 1

1

This is a form with sections, like

struct DemoView: View {
    var body: some View {
        Form {
            Section {
                NavigationLink("Upgrade to Premium", destination: Text("Some"))
            }
            Section {
                Button("Rate this app") {}
                Button("Share this app") {}
                Button("Feedback") {}
            }
            Section {
                Button("My other apps") {}
            }
        }
    }
}

Note: assuming it has NavigationView somewhere in parent to make NavigationLink working.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.