How do you make buttons inline with each other?

I want to make my buttons inline with each other, but spaced apart, a bit like the apple topbar BUT in swift.

My code:

struct NormalPageView: View { var body: some View { VStack { NavigationView { Form { Section { Image(systemName: "house.fill") Spacer() Image(systemName: "plus") Spacer() Image(systemName: "gearshape.fill")

                }
            }
        }

Welcome to the forum.

Did you try to insert in a HStack ?

struct NormalPageView: View {
    
    var body: some View {
        VStack {
            NavigationView {
                Form {
                    Section {
                        HStack {
                            Image(systemName: "house.fill")
                            Spacer()
                            Image(systemName: "plus")
                            Spacer()
                            Image(systemName: "gearshape.fill")
                        }
                    }
                }
            }
        }
    }
}

If that answers your question, don't forget to close the thread by marking this answer as correct.

Please note: when you post code, use code formatter tool to make it readable.

How do you make buttons inline with each other?
 
 
Q