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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -