Is there a way to change UISwitch from right to left? Because in the app the UISwitch is on the right side. I want to place it on the left side.
What is exactly the question ?
Do you mean the position of title ?
Or the ON/Off state to have On on the left ?
If so, you can subclass UISwitch and rotate 180°:
@IBDesignable
class MirroredSwitch: UISwitch {
override func draw(_ rect: CGRect) {
self.transform = CGAffineTransform(rotationAngle: .pi)
}
}