read(from:options:documentAttributes:)
Sets the contents of the receiver from the specified data object.
Declaration
func read(from data: Data, options: [AnyHashable : Any] = [:], documentAttributes dict: AutoreleasingUnsafeMutablePointer<NSDictionary?>?) -> BoolParameters
- data:
The data to read.
- options:
The option keys for importing the document. For a list of possible values, see “Option keys for importing documents” in Nsattributedstring.
- dict:
On return, contains the document attributes. For a list of possible values, see “Document Attributes” in Nsattributedstring.
Return Value
true if the attributed string is created successfully or false if it was not.