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

lineChart.clear() and lineChart.clearAll() do not work #42

Open
nelsaow opened this issue Jul 19, 2017 · 1 comment
Open

lineChart.clear() and lineChart.clearAll() do not work #42

nelsaow opened this issue Jul 19, 2017 · 1 comment

Comments

@nelsaow
Copy link

nelsaow commented Jul 19, 2017

I'm trying to clean de view and get an error, fatal error: unexpectedly found nil while unwrapping an Optional value. How can I use lineChart.clear()?

@anakayub
Copy link

anakayub commented Aug 4, 2018

This is how I implemented lineChart.clearAll() (as part of pickerView(_:didSelectRow:inComponent:)):
self.lineChart.clearAll() self.lineChart.removeFromSuperview() viewModel.liftPickerDidSelectRow(row: row, inComponent: component) drawLineChart()

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

2 participants