Creating a custom simple. If you need ideas on how to do this, or just want to use the one I wrote, try SwiftySwitch . This allows you to get a better setting than the default UISwitch you provided, and you get direct access to all this on the storyboard.
I do not recommend other methods, because Apple does not want their tools to be changed the way they should not have been.
source share