I am trying to flip (get the mirror view) a label text with CGAffineTransformMakeRotation. But still no progress.
This code flips it vertically but I could not flip it horizontally.
self.labelShowdata.transform = CGAffineTransformMakeRotation((180.0 * CGFloat(M_PI)) / 180.0)
Thanks
Try this:
self.labelShowdata.transform = CGAffineTransformMakeScale(-1, 1);
Swift 5:
self.table.transform = CGAffineTransform(scaleX: -1, y: 1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With