Is there any way to change the size of a UISwitch in IB becuase I working on a iPad 12.9" size, and the size is two small for it. I can't change it in code because I using one view controller.swift file for multiple device size/storyboards. Unless, I can target one storyboard in code. Please can some help me?
To use it, in places where you declared UISwitch, both in code and in IB:
In code, outside of any other class, create the LargeSwitch class (so it is top level, accessible from any class)
In IB, you create a UISwitch and give it the type LargeSwitch
in a view where you need to reference the switch, create the IBOutlet with type Largewitch!). Note that if you control drag from IB to the code, that will be automatically done.