Find the overlapping area of two imageviews overlap, and make this area change colour
问题 I'd like to be able to drag one imageview onto another, such that when they overlap, the overlapping area changes colour. To help visualise the problem, these imageviews are circular: when they overlap, it should form a Venn diagram-style image as shown below. I know you can detect whether the intersection has occurred by using: if (self.imageview1.bounds.contains(self.imageview2.bounds)) { ... } But do not really know how to colour the area in between! 回答1: so I figured out a way to do this