NSAttributedString.CompletionHandler
A completion handler for getting an asynchronous attributed string.
Declaration
typealias CompletionHandler = (NSAttributedString?, [NSAttributedString.DocumentAttributeKey : Any]?, (any Error)?) -> VoidParameters
- attributedString:
The attributed string, or nil if the method couldn’t create the string.
- attributes:
A dictionary containing document-level attributes. This parameter is
nilif the document doesn’t have any attributes. - error:
An error object if an error occurred, or
nilif the method returned the string successfully.