<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetCreationRequest/forAsset()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetCreationRequest(cm)creationRequestForAsset"
  },
  "title" : "forAsset()"
}
-->

# forAsset()

Creates a request for adding a new asset to the Photos library using asset resources.

```
class func forAsset() -> Self
```

## Return Value

An asset creation request.

## Discussion

Call this method within a photo library change block to create a new asset. For details on change blocks, see [`PHPhotoLibrary`](/documentation/Photos/PHPhotoLibrary). After calling this method, and before returning from the change block, use [`addResource(with:data:options:)`](/documentation/Photos/PHAssetCreationRequest/addResource(with:data:options:)) or [`addResource(with:fileURL:options:)`](/documentation/Photos/PHAssetCreationRequest/addResource(with:fileURL:options:)) to specify one or more data resources for the asset.

To set metadata properties of the newly created asset, use the corresponding properties of the change request (provided by the superclass [`PHAssetChangeRequest`](/documentation/Photos/PHAssetChangeRequest) and listed in Modifying Assets). To reference the newly created asset later in the same change block or after the change block completes, use the [`placeholderForCreatedAsset`](/documentation/Photos/PHAssetChangeRequest/placeholderForCreatedAsset) property to retrieve a placeholder object.

---

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)