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
Update Luca Davanzo's answer with Swift 4:
/** Rotate a view by specified degrees - parameter angle: angle in degrees */ func rotate(angle: CGFloat) { let radians = angle / 180.0 * CGFloat.pi let rotation = self.transform.rotated(by: radians) self.transform = rotation }