SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

Answered
0
0

Hello,

I was overriding the performZoom(at mousePoint: CGPoint, xValue: Double, yValue: Double) method of SCIPinchZoomModifier but it is not accessible anymore.

My Code:

import Foundation
import SciChart

public class FixedToCenterPinchZoomModifier : SCIPinchZoomModifier {

override func performZoom(at mousePoint: CGPoint, xValue: Double, yValue: Double) {
    let middle = CGPoint(x: parentSurface?.frame.midX ?? 0,
                         y: parentSurface?.frame.midY ?? 0)
    super.performZoom(at: middle, xValue: xValue, yValue: yValue)
}

}

I get the error: Method does not override any method from its superclass

Is there a way to access the protected method?

Version
4.3.0.5721
  • You must to post comments
Best Answer
0
0

Found the answer. You can import protected interfaces via

import SciChart.Protected.SCIPinchZoomModifier

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.