It doesn't make much sense to make Statistics as an AppEntity as this is only computed as a result. You're spot on with that thought, which is why there's TransientAppEntity. There's even an example of generated statistics to show this API off in a sample code project — take a look at the ActivityStatisticsSummary structure in that project! — Ed Ford, DTS Engineer
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: