---
title: localizedName
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidocument/localizedname
---

# localizedName

The localized name of the document.

## Declaration

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

## Discussion

Discussion By default, UIKit obtains the value from the filename component of fileURL. You can override the getter accessor method of this property to provide a custom name for presentation to the user, such as in error strings. See UIDocument for overriding advice. UIKit sets this property before it calls the completion handlers of the open(completionHandler:), save(to:for:completionHandler:), and revert(toContentsOf:completionHandler:). If, outside of these methods or their completion handlers, you want to wait for any pending file operations to complete before you access this property, you can call performAsynchronousFileAccess(_:) and access the property value in the block parameter.

## See Also

### Accessing document attributes

- [fileURL](uikit/uidocument/fileurl.md)
- [fileType](uikit/uidocument/filetype.md)
- [fileModificationDate](uikit/uidocument/filemodificationdate.md)
- [documentState](uikit/uidocument/documentstate.md)
- [progress](uikit/uidocument/progress.md)
