DEV Community

Discussion on: Default a View in NavigationView with SwiftUI

Collapse
 
mpaiva1055 profile image
mpaiva1055

Hi in the iPad view I want to set the destination to a view rather than a Text element.
I just need help with the if then loop on how to call for that view.

Collapse
 
maeganwilson_ profile image
Maegan Wilson

I think you need to replace the Text with whichever View you want to call. That's how I do it in my apps. I just chose a Text view as an example