fetchCount(_:)
Returns the number of models that match the criteria of the specified fetch descriptor.
Declaration
func fetchCount<T>(_ descriptor: FetchDescriptor<T>) throws -> Int where T : PersistentModelParameters
- descriptor:
A fetch descriptor that provides the configuration for the fetch.
Return Value
The total number of models that satisfy the criteria of the fetch descriptor.