Ramotion / paper-switch

:octocat: 🎚 RAMPaperSwitch is a Swift material design UI module which paints over the parent view when the switch is turned on. iOS library by @Ramotion

Home Page:https://www.ramotion.com/paper-switch/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Programmatically set ontintcolor

thomascsorbamedia opened this issue · comments

Hello,

I tried setting the ontintcolor programatically, this doesn't seem to work. only through storyboard.

self.paperSwitch1.onTintColor = UIColor(red: 241/255, green: 196/255, blue: 15/255, alpha: 1)
self.setupColorSwitch()

I set this in the viewDidLoad function but it doesn't seem work, anyone now a solution?

Thank you