In my view I've done this:
how do I tell the appropriate DayView when it has become the active page? If it matters for implementation, this is specifically when using WatchOS.
Code Block swift var body: some View { TabView { DayView(summary: History.shared.today()) DayView(summary: History.shared.thisWeek()) DayView(summary: History.shared.thisMonth()) } .tabViewStyle(PageTabViewStyle()) }
how do I tell the appropriate DayView when it has become the active page? If it matters for implementation, this is specifically when using WatchOS.