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

# ABCancelLoadingImageDataForTag(_:)

Cancels an asynchronous fetch of an image for the given tag.

```
func ABCancelLoadingImageDataForTag(_ tag: CFIndex)
```

## Parameters

`tag`

Used to track an asynchronous fetch. This parameter should have been returned from a previous call to the [`ABBeginLoadingImageDataForClient(_:_:_:)`](/documentation/AddressBook/ABBeginLoadingImageDataForClient(_:_:_:)) function.

## Discussion

Use the [`ABBeginLoadingImageDataForClient(_:_:_:)`](/documentation/AddressBook/ABBeginLoadingImageDataForClient(_:_:_:)) function to begin an asynchronous fetch. Implement your callback function to receive the fetched image. Use this function to cancel an asynchronous fetch.

---

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)