Can you provide some more code? If I just put what you've provided (and add a ToolbarItem) into a standard new project, I just get a white screen. Gonna need more info, but in the meantime have you tried adding a background colour to the toolbar?
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
}
.background(Color.gray)
.border(.red)
.toolbar {
ToolbarItem(placement: .bottomBar) {
Button("Press Me") {
print("Pressed")
}
}
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}