The number of objects in the fetch result.
SDKs
- iOS 8+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10+
Framework
- Photos
Declaration
var count: Int { get }
The number of objects in the fetch result.
SDKs
Framework
var count: Int { get }
func contains(Object Type) -> Bool
Returns whether the specified object is present in the fetch result.
func count Of Assets(with: PHAsset Media Type) -> Int
Returns the number of assets in the fetch result of a specified type.
var first Object: Object Type?
The first object in the fetch result.
var last Object: Object Type?
The last object in the fetch result.
func object(at: Int) -> Object Type
Returns the object located at the specified index.
subscript(Int) -> Object Type
Returns the object located at the specified index.
func objects(at: Index Set) -> [Object Type]
Returns an array containing the objects in the fetch result at the indexes in the specified index set.