The view transforms around the view center, so when you call
view.transform = CGAffineTransformMakeScale(0.5, 0.5)
It makes sense that this is similar to iOS 8, the reason it looks good in iOS 7 is probably due to a bug in iOS 7.
Try changing the leading constraint constant as follows:
self.switchLeadingConstraint.constant = -(self.mySwitch.bounds.size.width/4)
Thus, you can compensate in the offside that you have in iOS 8.
source share