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 have my Graph already displayed. If I tap on a button, i'd like to change the strokecolor of the lineLayer. So I added this in the class:
public func changeLineColor(color : UIColor) { lineLayer?.strokeColor = color.CGColor }
But if I call it from my view like: myGraph.changeLineColor(myColor) , it will return the error:
fatal error: use of unimplemented initializer 'init(layer:)' for class 'TestGraph.ScrollableGraphViewDrawingLayer'
I can still change the background color by adding this function and it works:
public func changeBackgroundColor(color : UIColor) { drawingView.backgroundColor = color }
BUT do you have any idea why I can't change the linecolor ? :/ thanks !!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have my Graph already displayed. If I tap on a button, i'd like to change the strokecolor of the lineLayer. So I added this in the class:
But if I call it from my view like: myGraph.changeLineColor(myColor) , it will return the error:
fatal error: use of unimplemented initializer 'init(layer:)' for class 'TestGraph.ScrollableGraphViewDrawingLayer'
I can still change the background color by adding this function and it works:
public func changeBackgroundColor(color : UIColor) {
drawingView.backgroundColor = color
}
BUT do you have any idea why I can't change the linecolor ? :/ thanks !!
The text was updated successfully, but these errors were encountered: