     }
     
     /**
-     Initializes a new `CheckboxButton` with a selected state.
+     Initializes a new `CheckboxButton` with a set state.
      
      - Parameters:
-       - frame: Frame of the receiver
-       - selected: Selected state of the receiver
-    */
-    convenience init(frame: CGRect, selected: Bool) {
+     - frame: Frame of the receiver
+     - on: On state of the receiver
+     */
+    convenience init(frame: CGRect, on: Bool) {
         self.init(frame: frame)
-        self.selected = selected
+        self.on = on
     }
     
     func customInitialization() {

        }
    }
    
    // MARK: Selection
    public override var selected: Bool {
        didSet {
            colorLayers()
        }
    }
    

    
    /// If set to `true`, the container gets a fill color similar to the `containerColor` property.
    /// Default value is `false`.
    @IBInspectable public var containerFillsOnToggleOn: Bool = false {
        didSet {
            colorLayers()
        }
    }
    
    /// A Boolean value that determines the off/on state of the checkbox. If `true`, the checkbox is checked.
    @IBInspectable public var on: Bool = false {
        didSet {
            colorLayers()
        }
    }
    
    // MARK: Internal and private properties
    
    internal let containerLayer = CAShapeLayer()
    internal let checkLayer = CAShapeLayer()
    
    internal var containerFrame: CGRect {
        let width = bounds.width
        let height = bounds.height
        
