0

I'm trying to align a view in SwiftUI the same way the new Workouts app for WatchOS 9 aligns with the time.

I have found this StackOverflow thread, but it does the exact opposite, I need alignment in the vertical axis.

So far I've tried the following, but it does not work for every screen size:

VStack(alignment: .leading) {
    // my content here
}
.frame(maxWidth: .infinity, alignment: .leading)
.ignoresSafeArea(edges: [.bottom, .top]).scenePadding().focusable()

(red lines added by me to illustrate) image of the visual difference between my app and Workouts on WatchOS 9

Empty2k12
  • 475
  • 12
  • 34

0 Answers0