Hello, Is there a way to use "switch statement" inside of a NavigationLink Destination?
Example:
(The views are different, that's why I don't put them in one struct)
Thank you
Example:
Code Block NavigationLink(destination: switch i { case 0: MatematicaView() case 1: ArteView() default: EmptyView() }){ Text("Hello") }
(The views are different, that's why I don't put them in one struct)
Thank you