The maximum number of objects to include in the fetch result.
- iOS 9+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- tvOS 10+
With the default fetch limit of zero, Photos returns all requested assets or collections in a fetch result. Change this value to fetch more efficiently in situations where a potentially very large result is not needed. For example, to fetch only the most recently captured asset, call the
fetch method, using the
sort property to sort in descending date order, and setting a fetch limit of one.