Why is my UIView not rotating about the z-axis? – Ios swift
I'm trying to get my UIView to rotate about the z-axis in Swift. But for some reason, the rotation axis is not as expected: rotatedView.layer.anchorPoint = CGPoint(x: 0.5, y: 0.5) rotatedView.contentMode = .scaleToFill rotatedView.layer.transform = CATransform3DMakeRotation(rotatedObjectWrapper.object.rotation, 0, 0, 1) How…