I am getting multiple error when building with swift 4. Does your swift 4 release support OS X as well as iOS? I am on version 3.0.4.
Here is an example of the error "Type 'NSAttributedStringKey' (aka 'NSString') has no member 'font'"
Seeing same issues. 63 errors in total.
UPDATE: downgraded to 3.0.3 and everything is fine now.
The same issue.
https://developer.apple.com/documentation/foundation/nsattributedstringkey
are you sure ??
an example
attrString = NSMutableAttributedString(string: newValue!)
attrString?.setAttributes([
NSAttributedStringKey.foregroundColor: NSColor.black,
NSAttributedStringKey.font: NSFont.systemFont(ofSize: 12.0)
], range: NSMakeRange(0, attrString!.length))
it's fine
same here
look at demo OS X "PieDemoViewController.swift"
I don't see what looking at a demo will do. The project simply would not build.
I'm also having the same problem with iOS. I tried downgrading to 3.0.3 which did not help. I also tried to manually go through and 'fix' all of the bugs that were highlighted in XCode (there were upwards of 100 in total) and I think I did more damage than good.
Most of the bugs were in relation to a dictionary type mismatch: NSAttributedStringKey : Any and String : AnyObject
Now, my app completely crashes every time I try to display a Chart
Could someone please give me a recommendation on what I should do? Remove Charts completely and reinstall (I used Carthage)?
I'm surprised more people are not having the same issue after upgrading XCode
Thank you
I believe your issue is that you have not set the correct swift version language for the pod that you are using or your project as a whole. This is something that I am sure a lot of people are having issues with. If you create a stack overflow issue, I would be more than happy to answer your question there and then link to it here so that the most people will benefit from it. You can link to the stack overflow issue here so I can go ahead and post an answer there.
I just created a question at stackoverflow:
https://stackoverflow.com/questions/46392602
I appreciate your help!
I just posted an answer. I hope that helps.
This seems resolved. Closing.
Please help me out with this error!!!
NSDictionary(object: UIFont(name: "Roboto-Medium", size: 14)!,forKey: NSAttributedStringKey.font as NSCopying) as? [String : Any];
Error showing like this...
Cannot assign value of type '[String : Any]?' to type '[NSAttributedStringKey : Any]?
Most helpful comment
Seeing same issues. 63 errors in total.
UPDATE: downgraded to 3.0.3 and everything is fine now.