NSAttributedString.DocumentReadingOptionKey
Options for constructing an attributed string from data you read from disk.
Declaration
struct DocumentReadingOptionKeyOverview
The NSAttributedString.DocumentReadingOptionKey type defines attributes to use when creating an attributed string from data in a file. Use these strings with methods such as init(data:options:documentAttributes:), init(HTML:options:documentAttributes:), init(URL:options:documentAttributes:), read(from:options:documentAttributes:), and read(from:options:documentAttributes:) to specify expected details. For example, specify the documentType attribute to interpret the file data as a specific file format.
Topics
Getting the document options
baseURLcharacterEncodingdefaultAttributesdocumentTypefileTypereadAccessURLtextEncodingNametextSizeMultipliertimeoutwebPreferenceswebResourceLoadDelegate