Published
- 1 min read
swift rotate text 90 degrees
The solution for this is noted below
swift rotate text 90 degrees
Solution
myButton.titleLabel?.transform = CGAffineTransform(rotationAngle: CGFloat.pi / 2)
myButton.transform = CGAffineTransform(rotationAngle: CGFloat.pi / 2)
Try other methods by searching on the site. That is if this doesn’t work