Why does this create 2 tabs in the Preview Panel?

Everything was going fine after i set the background Color, after I added a Button it created another Tab in the Preview Panel which I dont want. I want the button to be on top since all i did was set the background Color. Im new to XCode so Articles/Videos would be helpful

Swift Script:

struct HomeScreen: View {
  var body: some View {
    Color.accentColor
      .ignoresSafeArea()
     
    Button(/*@START_MENU_TOKEN@*/"Button"/*@END_MENU_TOKEN@*/) {
      /*@START_MENU_TOKEN@*//*@PLACEHOLDER=Action@*/ /*@END_MENU_TOKEN@*/
    }
     
  }
}
Answered by DevN1femi in 742104022

I found the solution myself turns out i had to use ZStack{}.

Accepted Answer

I found the solution myself turns out i had to use ZStack{}.

Why does this create 2 tabs in the Preview Panel?
 
 
Q