Pre loader

How can I programmatically dismiss a RolloverModifier on iOS using Swift

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

Hi, I’m looking for a way to programmatically dismiss a RolloverModifier from a chart. I’ve been tasked with creating a user experience that does two things: 1. when a user stops scrubbing on the chart, the rollover modifier should persist, and 2. when the user taps outside of the chart the rollover modifier should disappear.

I’ve accomplished the first part of the problem by implementing a subclass of SCIRolloverModifier and overriding the onEvent(args:) function, but I cannot figure out how to dismiss the rollover modifier when the user taps outside the chart surface.

Is there a way to accomplish this?

Version
4.4.2
  • You must to post comments
0
0

Simply set the isEnabled property and this will enable or disable the rollover on the chart

We have a demo of how to achieve the persistence in the SciTrader app SDK.

  • Download the app here https://scitrader.Io
  • Go to the chart screen
  • Click on the crosshair icon
  • Tap and move on the chart
  • Tap crosshair again

The source code for this sdk is open source. You can see exactly how we implemented the modifiers at http://github.com/abtsoftware/finance.ios

Best regards
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.