When thinking about it a bit more - wouldn't this be "solved" by just always adding Date.distantFuture as the last entry? It's dumb as hell, but..
It doesn't show any increased CPU usage until hitting the last explicit date. Simply appending an unreachable date should do the trick..
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: