No, there is a supported way to bind the scroll position value to a specific time unit. Richard Wei from the Swift Charts team describes how to make scrolling snap to the first hour of each day in this WWDC23 session starting from 8:40. The API for this functionality is the following line of code:
.chartScrollTargetBehavior(.valueAligned(matching: DateComponents(hour: 0)))
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: