0

Is there anyway currently to place a SwiftUI View in a Navigation Bar in WatchOS? I want to put the TimeLineView duration counter from Build a workout app for Apple Watch into the nav bar but can't figure out a way to do it especially given there are no tool bar items on watchOS.

My app currently puts it into the Nav Bar but only using a string via .navigationTitle but this prevents me from supporting Always On, i.e. the counter stops when the wrist down

GarySabo
  • 5,806
  • 5
  • 49
  • 124

1 Answers1

0

Turns out Apple has an initializer for navigationTitle that takes a view!

.navigationTitle {
    MyCustomView()
}
GarySabo
  • 5,806
  • 5
  • 49
  • 124