Aggregate functions in SwiftData

Hi, does SwiftData supports aggregate functions through NSExpression for operations like SUM, AVG, MIN, and MAX?

Answered by Frameworks Engineer in 891773022

That sounds like a great idea! Please use Feedback Assistant to provide suggestions and explain your use case in detail

Accepted Answer

That sounds like a great idea! Please use Feedback Assistant to provide suggestions and explain your use case in detail

Aggregate functions in SwiftData
 
 
Q