Contents

NSAttributedString.CompletionHandler

A completion handler for getting an asynchronous attributed string.

Declaration

typealias CompletionHandler = (NSAttributedString?, [NSAttributedString.DocumentAttributeKey : Any]?, (any Error)?) -> Void

Parameters

  • attributedString:

    The attributed string, or nil if the method couldn’t create the string.

  • attributes:

    A dictionary containing document-level attributes. This parameter is nil if the document doesn’t have any attributes.

  • error:

    An error object if an error occurred, or nil if the method returned the string successfully.

See Also

Creating from HTML