SwiftUI often feels like an embodiment of Alan Kay’s: “Simple things should be simple, complex things should be possible”

It took quite a bit of head-scratching to get this to work, but I was eventually able to get three different ScrollViews (each with a differently scaled chart in them) to synchronously scroll in real-time w/ backwards compatibility to iOS 17 Phew… 😮‍💨

Though on mornings like this I do wish more stuff was in the “Simple Things" bucket rather than the “Complex Things” bucket.

(Probably worth mentioning that this isn't actually the UI I'm building...but a necessary intermediate building block) That UI would be mind bending (🤯) in the actual app.
@_Davidsmith I was wondering! But it would be very fun to have!
@_Davidsmith Okay that is _extremely_ neat
@_Davidsmith very cool! Is this Swift Charts or your own thing? (I know nothing about Swift Charts so don’t even know if that’s a stupid question!)
@joethephish Completely custom stuff. Swift Charts is great for basic stuff but as soon as you need anything at all custom I find it very frustrating.
@_Davidsmith hah, sounds very familiar! Totally makes sense, and your implementation looks great
@_Davidsmith Would love a technical write-up on the strategy here, just out of curiosity. 🤯
@caseyliss @_Davidsmith same, would be very interesting to see how you’ve solved this.
Really neat UI nonetheless!

@caseyliss @_Davidsmith me too.

I know how I would try to do it, but would like to know if the way it’s done is the same.

@_Davidsmith That is some clever UI that I never considered for viewing historical data. Now, having seen it, it just seems obvious! Hidden complexity from the user.

I have a sign hanging in my office that reads “Simple does not equal easy.” that I put up to remind those requesting my designs equipment be “simple”, that what they’re really asking for is “easy for the end user”, and that might require a lot of complexity up front. “Simple for whom?” is usually my first question.

@_Davidsmith wow.. that’s very cool… are you doing it all with a single struct for the data and three subviews all looking at the same struct?