Draw circles on points on UIImage in Swift

In my controller, I look at images in an album and select 3 random points on one image. I would like to have a way to circle these 3 points on the image so the user knows which points I am referring to.

I found this article that does something similar but it is old and not in Swift. Also, was hoping not to create a new image like he is in that article.

Does anyone have any recommendations on how to implement this?

Hi @albertski,
There are a couple of ways to do that.

One way could be to create a view that is centred at the points you have chosen. This could be a shape Layer of type circle. The other way is that you could draw the same on the view using CoreGraphics.

cheers,

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