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

Error Swift 2 - ChartViewBase.swift #428

Closed
belen89 opened this issue Sep 28, 2015 · 2 comments
Closed

Error Swift 2 - ChartViewBase.swift #428

belen89 opened this issue Sep 28, 2015 · 2 comments

Comments

@belen89
Copy link

belen89 commented Sep 28, 2015

Hi guys! I'm having an error with ChartViewBase class (the Swift 2 version)

This line:
layer.renderInOptionalContext(context) is using the "renderInOptionalContext" which is deprecated.

I replaced it with:
layer.renderInContext(context!) and now is working fine, but I don't know if I'm missing something.

Thanks!

@pmairoldi
Copy link
Collaborator

renderInOptionalContext can't be deprecated since it's a function I created that which basically does renderInContext(context!) but without force unwrapping.

What is the error you are seeing exactly.

@danielgindi
Copy link
Collaborator

You haven't imported an important file. It's missing from your project, which is why this function is missing from your project. Please make sure you've imported the project fully.

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

3 participants