I am presently engaged on an iOS undertaking the place I am dealing with a problem associated to sustaining a vertical offset from a touchpoint even after the view has been rotated.
let level = CGPoint(x: touchpoint.x, y: touchpoint.y - CGFloat(self.setOffset))
Nevertheless, the present outcome I am getting would not match my expectations. This is a picture illustrating the problem: (https://i.stack.imgur.com/RyI0a.jpg)
I’ve additionally added an inverted rotation to a inexperienced form utilizing CAShapeLayer. Whereas I’ve managed to use the rotation to the form, I am struggling to determine easy methods to alter the touchpoint’s place to keep up the specified offset even after rotation.