What’s the correct way to rotate a UILabel 90 degrees? June 11, 2023 by Tarik Below code works in Swift 3, 4 and 5: dayLabel.transform = CGAffineTransform(rotationAngle: .pi/2)