     /*
     *   Sets the border color that shows when the switch is off. Defaults to light gray.
     */
-    var borderColor: UIColor = UIColor(red: 0.78, green: 0.78, blue: 0.8, alpha: 1) {
+    @IBInspectable var borderColor: UIColor = UIColor(red: 0.78, green: 0.78, blue: 0.8, alpha: 1) {
     willSet {
         if !self.on {
             backgroundView.layer.borderColor = newValue.CGColor

import UIKit
import QuartzCore

@objc class SevenSwitch: UIControl {
    
    // public
    
    /*
    *   Set (without animation) whether the switch is on or off
    */
    var on: Bool {
    get {
        return switchValue
    }

    /*
    *	Sets the knob color that shows when the switch is on. Defaults to white.
    */
    @IBInspectable var onThumbTintColor: UIColor = UIColor.whiteColor() {
    willSet {
        userDidSpecifyOnThumbTintColor = true
        if self.on && !self.tracking {
