-
-
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' #2816
Comments
I am also facing errors in most of the Charts classes after updating to 3.0.4 Incorrect argument label in call (have 'withAttributes:', expected 'attributes:') |
I also fixed it. Thank You |
how to fix in an ObjectiveC project? |
it should have @objc tag to use, so update your code |
attributes: [NSFontAttributeName: label.font] |
For Swift 3 use |
I guess this should be fixed in this framework. |
Btw, if using Pods:
|
Ran into this problem with |
let att: [NSAttributedStringKey: Any] = [
NSAttributedStringKey(rawValue:
NSAttributedStringKey.font.rawValue) : UIFont.italicSystemFont(ofSize: 15.0
),
NSAttributedStringKey(rawValue:
NSAttributedStringKey.foregroundColor.rawValue) : Const.colorBlue500,
NSAttributedStringKey(rawValue:
NSAttributedStringKey.underlineStyle.rawValue) : 1]
let attributeString = NSMutableAttributedString(string:
"open_accessory_sheet".localize,
attributes: att)
For swift 4 .
you can try use it
Vào Th 7, 9 thg 6, 2018 vào lúc 02:43 Jose Manuel Vergara Florez <
notifications@github.com> đã viết:
… Ran into this problem with v. 3.1.1, I'm using Swift 4.2
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2816 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMLGfjdadIXdyF4cgGGTCaYMQs1sz9CDks5t6tPcgaJpZM4PgNRb>
.
|
let att: [NSAttributedStringKey: Any] = [ |
When updated Charts to 3.0.4 getting this error in Xcode 9.
Other errors are:
The text was updated successfully, but these errors were encountered: