Apple Developer Documentation

<aside> 💡 객체의 중복을 어떻게 피할 것인가?, 아주 살짝 겹치는 건 괜찮지만 완전하게 겹치는 것을 방지하고 싶을 때

</aside>

<aside> 💡 중복 처리를 할 때, 주의점은 전체 공간이 꽉 찼을 때 어떻게 처리할 것인가?

</aside>

문법이 변경됨!

Untitled

if rotateView.frame.intersects(rotateView.frame) {
      print("겹쳐")
}

&ref

https://stackoverflow.com/questions/45593466/how-to-calculate-a-random-cgpoint-which-does-not-touch-a-uiview