Each Button in on a different preview page

I have Text and Textviews on my context view and 3 buttons. For an unknown reason the 3 buttons are all on different preview screens. In the simulator they all show up together.

It generally helps if you post some code so we can figure out what’s going on.

But my guess is that you probably have something like this:

var body: some View {
    Text("Hello, World!")
    Button("Button 1") {}
    Button("Button 2") {}
    Button("Button 3") {}
}

If you wrap that all in a VStack (or some other kind of grouping container) then you will see a single preview.

var body: some View {
    VStack {
        Text("Hello, World!")
        Button("Button 1") {}
        Button("Button 2") {}
        Button("Button 3") {}
    }
}

Thank you that worked.