Redirect to view after button clicked

Hi! I am making an app where you connect to the device and then it takes you to a Device Home view. I have gotten the connection to work, but how can I redirect to the Device Home view?

Here is the SwiftUI code for the button:
Code Block swift
Button(action: {
let clientID = "Momo-iOS-"+String(Int.random(in: 0..<100))
let mqtt = CocoaMQTT(clientID: clientID, host: "192.168.1.26")
mqtt.connect()
}) {
ZStack {
RoundedRectangle(cornerRadius: 100).fill(Color.yellow).frame(width: 240, height: 80)
  Text("Connect").font(.system(size: 26)).foregroundColor(.white)
  }
}




Redirect to view after button clicked
 
 
Q