limit
The maximum number of samples that this query returns.
Declaration
var limit: Int { get }Discussion
This property’s value sets the maximum number of samples that the query returns upon completion.
If you are specifically interested in retrieving only new samples (samples added since the last query), consider using an HKAnchoredObjectQuery query instead.