# How can I copy this feature?

**URL:** <https://forums.kodeco.com/t/how-can-i-copy-this-feature/93647>\
**Category:** Swift\
**Created:** [January 6, 2020, 10:15am UTC](https://forums.kodeco.com/t/how-can-i-copy-this-feature/93647 "2020-01-06T10:15:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cranimax](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/cranimax/32/109516_2.png) [@cranimax](https://forums.kodeco.com/u/cranimax)\
**Post date:** [January 6, 2020, 10:15am UTC](https://forums.kodeco.com/t/how-can-i-copy-this-feature/93647/1 "2020-01-06T10:15:53Z")

</div>

I already asked this over on [stackoverflow](https://stackoverflow.com/questions/59180247/how-to-copy-apples-location-based-reminder-feature-a-resizable-mkcircle-overla) weeks ago.

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

![](https://i.stack.imgur.com/gv6Y0.gif)

thx

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [February 1, 2020, 10:03am UTC](https://forums.kodeco.com/t/how-can-i-copy-this-feature/93647/2 "2020-02-01T10:03:47Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![cranimax](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/cranimax/32/109516_2.png) [@cranimax](https://forums.kodeco.com/u/cranimax)\
**Post date:** [February 24, 2020, 3:32pm UTC](https://forums.kodeco.com/t/how-can-i-copy-this-feature/93647/3 "2020-02-24T15:32:53Z")

</div>

Thanks. Unfortunately I didn’t have had the time to have a more detailed look at this feature. But I will … someday 😄  
Until than, if somebody is looking for this feature, I found the following on [GitHub](https://github.com/OrbJapan/ResizableMKCircleOverlay).

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [June 21, 2020, 2:15am UTC](https://forums.kodeco.com/t/how-can-i-copy-this-feature/93647/4 "2020-06-21T02:15:53Z")

</div>

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