So I have this simple problem where I need to rotate a CALayer 90 degrees. The problem is however, that it seems none of the methods I have found from research actually do anything. Below is the code I am using where imgLayer is a CALayer
var transform = CATransform3DIdentity
transform = CATransform3DRotate(transform, (CGFloat(Double.pi/2)), 0, 1, 0)
imgLayer.transform = transform
From what I have read this code should work but it does not seem to have any affect at all and I was wondering whether anyone had any suggestions as to why this is the case. Any help on the topic would be greatly appreciated, thank you.
Regards, Nick