-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Type 'NSAttributedStringKey' (aka 'NSString') has no member 'font' #2844
Comments
Having the same issue, just updated to Xcode 9, running Charts version 3.0.4. |
Ok, so the issue happens because NSAttributedStringKey was introduced in Swift 4 for a more convenient handling of the attribute keys. I was using Swift 3.2, but after updating my application, all the problems went away. |
Change |
Is there any alternative to not update to swift 4.0? |
Had the same issue. Fixed by using an older version of Charts. |
any one who uses 3.0.4 must use Swift 4. If there are any frameworks requires lower, you should roll back chart or upgrade those old frameworks. |
attributes: [NSFontAttributeName: label.font] with swift 3.2 . |
My project use swift 3.2 now. .. |
Charts/Source/Charts/Renderers/BarChartRenderer.swift:620:121: Type 'NSAttributedStringKey' (aka 'NSString') has no member 'font'
The text was updated successfully, but these errors were encountered: