-
-
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
ChartsDemo-Swift crashes #3327
Comments
That's because you niled out the chartData and then try to unwrap it: case .toggleCubic:
for set in chartView.data!.dataSets as! [LineChartDataSet] {
set.mode = (set.mode == .cubicBezier) ? .linear : .cubicBezier
} @jjatie this is no big deal. But I checked many of the view controllers uses One option would be add a check before each |
Looks like we'll need to guard each |
@liuxuan30 @valeriyvan I've thought about this some more. It's easy to imagine a case where a user wants to temporarily hide a given Once this implemented, the demos should not be setting the data to nil, but simply toggling |
Does it sound like data should’t be optional anymore? |
That's a different discussion, but I've been thinking yes. |
This seems like a corner case and optionality of many properties are changing in 4.0. As we have limited resources to keep making changes for non-critical areas, I am closing this. After 4.0 is released, we will have more time to reevaluate issues like this. |
ChartsDemo-Swift crashes when in Line Chart in option choose Toggle Data option and then choose, Toggle Cubic option.
The text was updated successfully, but these errors were encountered: