MeMouli
MeMouli

Reputation: 43

how to make cross label with background colour in swift?

enter image description here

how to get label like "Best" which is shown on above image.

Upvotes: 0

Views: 111

Answers (1)

Salman Ghumsani
Salman Ghumsani

Reputation: 3657

You can rotate your label by using transform:

lblBest.transform = CGAffineTransform(rotationAngle: .pi/3)

Upvotes: 2

Related Questions