How to do navigation in SwiftUI in watchOS
Issue #447
NavigationView is not available on WatchKit
, but we can just use NavigationLink
1 | List(services.map({ AnyService($0) })) { anyService in |
Adding NavigationLink
to a View adds a round shadow cropping effect, which is usually not want we want.
But we shouldn’t wrap Button
as Button
handles its own touch event, plus it has double shadow effect.
1 | NavigationLink(destination: |
Just use Text and it’s good to go
1 | NavigationLink(destination: |