<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIManagedDocument/persistentStoreType(forFileType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIManagedDocument(im)persistentStoreTypeForFileType:"
  },
  "title" : "persistentStoreType(forFileType:)"
}
-->

# persistentStoreType(forFileType:)

Returns the Core Data store type for a given document file type.

```
func persistentStoreType(forFileType fileType: String) -> String
```

## Parameters

`fileType`

The document file type.

## Return Value

The persistent store type for `fileType`.

## Discussion

Override this method to specify a persistent store type for a given document type.

The default returns <doc://com.apple.documentation/documentation/CoreData/NSSQLiteStoreType>.

---

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)