<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "AssetsLibrary",
  "identifier" : "/documentation/AssetsLibrary/ALAssetsLibraryAssetForURLResultBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Assets Library"
    ],
    "preciseIdentifier" : "c:@T@ALAssetsLibraryAssetForURLResultBlock"
  },
  "title" : "ALAssetsLibraryAssetForURLResultBlock"
}
-->

# ALAssetsLibraryAssetForURLResultBlock

Signature for the block executed if the user has granted access to the caller to access the data managed by the framework in `ALAssetsLibrary/asset(for:resultBlock:failureBlock:)`.

```
typedef void (^)(ALAsset *) ALAssetsLibraryAssetForURLResultBlock;
```

## Discussion

The block parameter is defined as follows:

- asset: The asset identified by the URL parameter in `ALAssetsLibrary/asset(for:resultBlock:failureBlock:)`.

If the asset is not found, `asset` is `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)