---
title: localIdentifier
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phobject/localidentifier
---

# localIdentifier

A unique string that persistently identifies the object.

## Declaration

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

## Mentioned in

Requesting Changes to the Photo Library

## Discussion

Discussion Use this string to find the object by using the fetchAssets(withLocalIdentifiers:options:), fetchAssetCollections(withLocalIdentifiers:options:), or fetchCollectionLists(withLocalIdentifiers:options:) method.
