<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHObject/localIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHObject(py)localIdentifier"
  },
  "title" : "localIdentifier"
}
-->

# localIdentifier

A unique string that persistently identifies the object.

```
var localIdentifier: String { get }
```

## Discussion

Use this string to find the object by using the [`fetchAssets(withLocalIdentifiers:options:)`](/documentation/Photos/PHAsset/fetchAssets(withLocalIdentifiers:options:)), [`fetchAssetCollections(withLocalIdentifiers:options:)`](/documentation/Photos/PHAssetCollection/fetchAssetCollections(withLocalIdentifiers:options:)), or [`fetchCollectionLists(withLocalIdentifiers:options:)`](/documentation/Photos/PHCollectionList/fetchCollectionLists(withLocalIdentifiers:options:)) method.

---

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)