I set my colors as following : midColor = #878787 offColor = #1ABC9C onColor = #F98162 For on State and off State it's working really good, but when I call toggleMid() it shows something like below  It's a great library anyway