I'm following a SpriteKit tutorial video from Rob Percival, and this line of code does not compile. It seems the syntax is out of date for getting the "mid x" and "mid y" values. What are the replacements for CGRectGetMidX()
and CGRectGetMidY()
?
CGPoint(x: CGRectGetMidX(self.frame),y: CGRectGetMidY(self.frame))