Regarding the naming pattern inconsistency in the fetchAssets method of PHAsset

Just simple question.

why the function

    @available(iOS 8, *)
    open class func fetchAssets(with options: PHFetchOptions?) -> PHFetchResult<PHAsset>

use name "with" refers to PHFetchOptions? while other functions in same name use "options" instead?

    @available(iOS 8, *)
    open class func fetchAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?) -> PHFetchResult<PHAsset>

    @available(iOS 8, *)
    open class func fetchAssets(withLocalIdentifiers identifiers: [String], options: PHFetchOptions?) -> PHFetchResult<PHAsset>

    @available(iOS 8, *)
    open class func fetchKeyAssets(in assetCollection: PHAssetCollection, options: PHFetchOptions?) -> PHFetchResult<PHAsset>?

    @available(iOS 8, *)
    open class func fetchAssets(withBurstIdentifier burstIdentifier: String, options: PHFetchOptions?) -> PHFetchResult<PHAsset>

    @available(iOS 8, *)
    open class func fetchAssets(with options: PHFetchOptions?) -> PHFetchResult<PHAsset>

    @available(iOS 8, *)
    open class func fetchAssets(with mediaType: PHAssetMediaType, options: PHFetchOptions?) -> PHFetchResult<PHAsset>

    @available(iOS, introduced: 8, deprecated: 11, message: "Will be removed in a future release")
    open class func fetchAssets(withALAssetURLs assetURLs: [URL], options: PHFetchOptions?) -> PHFetchResult<PHAsset>

See API Design Guidelines - Argument Labels

1 Like