swift - How to override internal framework method in application (outside framework) -
is there anyway override internal framework method when subclassing in swift? ex. superclass
public class barchartrenderer: chartdatarendererbase { internal func drawdataset(context context: cgcontext, dataset: barchartdataset, index: int) { ... } }
and want override method draw differently dataset (ios-charts)
public class esbarchartrenderer: barchartrenderer { overide func drawdataset(context context: cgcontext, dataset: barchartdataset, index: int) { ... } }
but when i'm trying override xcode gives me error:
method not override method superclass
because it's internal.
there 1 internal variable need access , same above xcode can't see it.
Comments
Post a Comment