---
title: isConflict
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsfileversion/isconflict
---

# isConflict

A Boolean value indicating whether the contents of the version are in conflict with the contents of another version.

## Declaration

```swift
var isConflict: Bool { get }
```

## Discussion

Discussion When two or more versions of a file are written at the same time, perhaps because the file is saved in the cloud and one or more of the writers were offline when they were writing, the system attempts to resolve the conflict automatically. It does this by picking one of the file versions to be the current file and setting this property to true for the other file versions that are in conflict.

## See Also

### Handling Version Conflicts

- [isResolved](foundation/nsfileversion/isresolved.md)
- [unresolvedConflictVersionsOfItem(at:)](foundation/nsfileversion/unresolvedconflictversionsofitem(at:).md)
