ios - swift - extending PieChartView -


i have following code i'm facing issues, maybe related 'open' keyword.

class custompiechartview: piechartview {       internal override func initialize()     {         super.initialize()          renderer = piechartrenderer(chart: self, animator: _animator, viewporthandler: _viewporthandler)         _xaxis = nil          self.highlighter = piehighlighter(chart: self)     }   } 

enter image description here

initialize marked internal inside piechartview

according swift documentation cannot access internal members of frameworks (they must marked open).

internal access enables entities used within source file defining module, not in source file outside of module. typically use internal access when defining app’s or framework’s internal structure.

...

open class members can overridden subclasses within module they’re defined, , within module imports module they’re defined.

the maintainer(s) of charts may not want method overridden since it's open source perhaps you/someone can attempt have changed if there reason or use case.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -