We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Material+NSMutableAttributedString.swift:
Material+NSMutableAttributedString.swift
open func addAttributes(_ keys: [NSAttributedStringKey: Any], range: NSRange) { for (k, v) in keys { addAttribute(k, value: v, range: range) } }
This conflicts with addAttributes in Foundation.NSAttributedString.swift:
Foundation.NSAttributedString.swift
open func addAttributes(_ attrs: [NSAttributedStringKey : Any] = [:], range: NSRange)
A workaround is to use updateAttributes until it's fixed.
updateAttributes
The text was updated successfully, but these errors were encountered:
Hmm... can you show me the error for this. I don't see it when I compile. Thank you!
Sorry, something went wrong.
I have the same issue :
Material.NSMutableAttributedString:7:15: note: found this candidate open func addAttributes(_ keys: [NSAttributedStringKey : Any], range: NSRange) ^ Foundation.NSMutableAttributedString:4:15: note: found this candidate open func addAttributes(_ attrs: [NSAttributedStringKey : Any] = [:], range: NSRange)
Why do you have this method in your extension ? This method exists since iOS 3.2+ (see: https://developer.apple.com/documentation/foundation/nsmutableattributedstring/1414304-addattributes)
Compilation error:
/Users/...ActivityCell.swift:237:9: Ambiguous use of 'addAttributes(_:range:)'
I removed that function :) in this release Material 2.10.4. Thanks for sharing.
daniel-jonathan
No branches or pull requests
In
Material+NSMutableAttributedString.swift
:This conflicts with addAttributes in
Foundation.NSAttributedString.swift
:A workaround is to use
updateAttributes
until it's fixed.The text was updated successfully, but these errors were encountered: