Replacement for rectByIntersecting in swift 3 -


i wanted learn more custom gesture recognizers reading ray wenderlich tutorial, planned modify in order learn details , can change learn how each piece works, written in previous version of swift. swift updated of code , able fix rest manually save replacement rectbyintersecting. website , code snippet follows:

https://www.raywenderlich.com/104744/uigesturerecognizer-tutorial-creating-custom-recognizers

let overlaprect = fitboundingbox.rectbyintersecting(pathboundingbox)

as shown in tutorial check make sure circle drawn actual circle , not arc, or s or 8, etc.

the error value of type cgrect has no member rectbyintersecting, since removed when swift updated.

i wasn't able find far replacement this, wondering if i'm missing easy fix or if should attack if different angle?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -