twotoasters / TTSwitch

Fully customizable switch for iOS using images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thumbHighlightImage is not useful in iOS 10, xib

odyyy opened this issue · comments

commented

bulid a UIView in xib and change class to TTSwitch
change thumbHighlightImage in swift code
the switch color is not changed

    ttSwitch.thumbImage = #imageLiteral(resourceName: "switch_gray")
    ttSwitch.thumbHighlightImage = #imageLiteral(resourceName: "switch_yellow")
    ttSwitch.overlayImage = #imageLiteral(resourceName: "switch_background")
    ttSwitch.trackImage = #imageLiteral(resourceName: "switch_background")