<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocument/State/inConflict",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIDocumentState@UIDocumentStateInConflict"
  },
  "title" : "inConflict"
}
-->

# inConflict

Conflicts exist for the document file located at the file URL.

```
static var inConflict: UIDocument.State { get }
```

## Discussion

You can access these conflicting document versions by calling the <doc://com.apple.documentation/documentation/Foundation/NSFileVersion/otherVersionsOfItem(at:)> class method of the <doc://com.apple.documentation/documentation/Foundation/NSFileVersion> class. This method returns an array of <doc://com.apple.documentation/documentation/Foundation/NSFileVersion> objects. You can then resolve the conflicting versions — for example, programmatically attempt to merge the versions or present the document versions to a person and request them to pick one.

---

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)