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
I get a crash with the following line of code from ChartXAxisRenderer.swift:
let labelSize = widthText.sizeWithAttributes([NSFontAttributeName: xAxis.labelFont])
The crash is:
fatal error: value failed to bridge from Swift type to a Objective-C type
When I po xAxis.labelFont the output is <uninitialized>.
po xAxis.labelFont
<uninitialized>
This crashes only when I use a custom font like so:
xAxis.labelFont = [UIFont fontWithName:@"SourceSansPro" size:12];
Using the system font does not crash.
The text was updated successfully, but these errors were encountered:
Turns out the font name was bad. Perhaps Charts could handle an invalid font more gracefully? Fall back to a default font or throw an exception?
Sorry, something went wrong.
No branches or pull requests
I get a crash with the following line of code from ChartXAxisRenderer.swift:
let labelSize = widthText.sizeWithAttributes([NSFontAttributeName: xAxis.labelFont])
The crash is:
fatal error: value failed to bridge from Swift type to a Objective-C type
When I
po xAxis.labelFont
the output is<uninitialized>
.This crashes only when I use a custom font like so:
xAxis.labelFont = [UIFont fontWithName:@"SourceSansPro" size:12];
Using the system font does not crash.
The text was updated successfully, but these errors were encountered: