I tried rotating a UIView using:
view.transform = CGAffineTransform.init(rotationAngle: 45)
only to see the edges of the view looked very distorted. Is this normal? And if it is, are there any workarounds to straighten the edges?
EDIT
I found that adding the piece of code below works the best
view.layer.allowsEdgeAntialiasing = true