<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/NSAttributedStringCompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:@T@NSAttributedStringCompletionHandler"
  },
  "title" : "NSAttributedStringCompletionHandler"
}
-->

# NSAttributedStringCompletionHandler

```
typedef void (^)(NSAttributedString *, NSDictionary<NSString *,id> *, NSError *) NSAttributedStringCompletionHandler;
```

## Discussion

Document-Level attributes, like NSBackgroundColorDocumentAttribute, or an error. An implementation of this block type must expect to be called asynchronously when passed to HTML loading methods.

---

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)