<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABHasUnsavedChanges(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABHasUnsavedChanges"
  },
  "title" : "ABHasUnsavedChanges(_:)"
}
-->

# ABHasUnsavedChanges(_:)

Returns whether if there are unsaved changes in the address book.

```
func ABHasUnsavedChanges(_ addressBook: ABAddressBookRef!) -> Bool
```

## Parameters

`addressBook`

The address book for the logged-in user.

## Return Value

`true` if there are unsaved changes, `false` otherwise.

## Discussion

The unsaved changes flag is set automatically whenever changes are made to the address book.

---

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)