Category: Apple Computer

Swift 3: Distance between two CGPoints

Swift 3: Distance between two CGPoints

Here it is in Swift 3, it’s a little different. I tried to use hypotf but it didn’t like CGFloat subtraction.