Skip to content
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

Closed
VinayAzuga opened this issue Oct 3, 2017 · 8 comments
Closed

Comments

@VinayAzuga
Copy link

Charts/Source/Charts/Renderers/BarChartRenderer.swift:620:121: Type 'NSAttributedStringKey' (aka 'NSString') has no member 'font'

@GerardoMR
Copy link

Having the same issue, just updated to Xcode 9, running Charts version 3.0.4.

@GerardoMR
Copy link

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.

@assisjeferson
Copy link

Change Swift Language Version to Swift 4.0

@CarlinhaCamargo
Copy link

Is there any alternative to not update to swift 4.0?

@NadyaCherniavskaya
Copy link

Had the same issue. Fixed by using an older version of Charts.

@liuxuan30
Copy link
Member

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.

@thaihauit
Copy link

attributes: [NSFontAttributeName: label.font] with swift 3.2 .

@RenderCoder
Copy link

My project use swift 3.2 now. ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants