Cannot convert value of type NSAttributedString.DocumentAttributeKey to .DocumentReadingOptionKey

You need to pass one of the available NSAttributedString DocumentType options: Hypertext Markup Language (HTML) document. static let html: NSAttributedString.DocumentType Plain text document. static let plain: NSAttributedString.DocumentType Rich text format document. static let rtf: NSAttributedString.DocumentType Rich text format with attachments document. static let rtfd: NSAttributedString.DocumentType In this case you will need to pass the first … Read more