-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<Description> : Adding NSAttributed string data extension. #379
base: master
Are you sure you want to change the base?
Conversation
c3f6ef0
to
0b97e2a
Compare
Sources/DataExtensions.swift
Outdated
public var attributedString: NSAttributedString? { | ||
do { | ||
return try NSAttributedString(data: self, options:[NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute: String.Encoding.utf8.rawValue], documentAttributes: nil) | ||
} catch let error as NSError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Khalian Do we need to use NSError or we can use Swift's Error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good callout. I fixed that.
Generated by 🚫 Danger |
0b97e2a
to
849232a
Compare
UIColor Tests are blowing up for some reason. |
<Type> : feature/test
: feature/test
Checklist