I\'m trying to rotate an UIView a few radians but after applying the transformation it doesn\'t look to be keeping its size. What\'s the proper way to achieve t
UIView
Swift 5:
extension UIView { func setTransformRotation(toDegrees angleInDegrees: CGFloat) { let angleInRadians = angleInDegrees / 180.0 * CGFloat.pi let rotation = self.transform.rotated(by: angleInRadians) self.transform = rotation } }