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
let attributes = [H1:[NSFontAttributeName:font], H1:[NSForegroundColorAttributeName:color]]
this doesn't work. "Type NSString does not confrom to protocol 'Hashable' "
The text was updated successfully, but these errors were encountered:
In case someone has this problem:
let attributes = [ NSNumber(unsignedInt: H1.value):[NSFontAttributeName:font, NSForegroundColorAttributeName:color], NSNumber(unsignedInt: H2.value):[NSForegroundColorAttributeName:color]]
Sorry, something went wrong.
.value didn't work for me, not sure if this has changed in some version of swift. I had to use .rawValue
let attributes = [ NSNumber(unsignedInt: H1.rawValue):[NSFontAttributeName:font, NSForegroundColorAttributeName:color], NSNumber(unsignedInt: H2.rawValue):[NSForegroundColorAttributeName:color]]
@buscarini could you please post more of your code? I'm trying to write a complete Swift example. See #38
No branches or pull requests
this doesn't work. "Type NSString does not confrom to protocol 'Hashable' "
The text was updated successfully, but these errors were encountered: