     }
   }
   
+  /// Button on image.
+  @IBInspectable
+  open var buttonOnImage: UIImage? {
+    didSet {
+      styleForState(state: switchState)
+    }
+  }
+  
+  /// Button off image.
+  @IBInspectable
+  open var buttonOffImage: UIImage? {
+    didSet {
+      styleForState(state: switchState)
+    }
+  }
+  
   /// Track on color.
   @IBInspectable
   open var trackOnColor = Color.clear {

    if .on == state {
      button.backgroundColor = buttonOnColor
      track.backgroundColor = trackOnColor
    } else {
      button.backgroundColor = buttonOffColor
      track.backgroundColor = trackOffColor
    }
  }
  

    if .on == state {
      button.backgroundColor = buttonOnDisabledColor
      track.backgroundColor = trackOnDisabledColor
      button.image = buttonOnDisabledImage
    } else {
      button.backgroundColor = buttonOffDisabledColor
      track.backgroundColor = trackOffDisabledColor
      button.image = buttonOffDisabledImage
    }
  }
  
