SwiftUI: How to preview a view on a physical provisioned device?

Viewed 1002

When using SwiftUI view previews, is there a way to get it displayed on my physical device?

struct LoginView_Previews: PreviewProvider {
    static var previews: some View {
        LoginView()
    }
}

1 Answers

Yes, simply activate "Preview on device" in the canvas view:

enter image description here

Related