How can I copy this feature?

I already asked this over on stackoverflow weeks ago.

I like to implement this resizable circle in my app. Any Idea how to do that?

thx

Hi @cranimax,
I have not tried to solve it via code as yet, however, there are a couple of things you can do to solve this.

  1. The gesture is on the black dot, not the circle, and as the black dot moves away from the centre.

  2. This gives you the radius and you can redraw the circle with this new radius

  3. The simplest way would be to use a CAShapeLayer to render the circle

  4. The distance is a bit tricky and you will have to translate that based on the current zoom level (I have not tried it out hence cannot provide a definitive answer on this distance calculation)

cheers,

Thanks. Unfortunately I didn’t have had the time to have a more detailed look at this feature. But I will … someday :smile:
Until than, if somebody is looking for this feature, I found the following on GitHub.

This topic was automatically closed after 166 days. New replies are no longer allowed.