     override public func layoutSubviews() {
         super.layoutSubviews()
 
-        layer.cornerRadius = bounds.height/2
-    }
-
-    private func refreshState() {
-        layer.borderColor = onColor.cgColor
-
-        if isSelected {
-            backgroundColor = onColor
-            imageView.tintColor = offColor
-            titleLabel.textColor = offColor
-        } else {
-            backgroundColor = offColor
-            imageView.tintColor = onColor
-            titleLabel.textColor = onColor
-        }
+        layer.cornerRadius = bounds.height/4
     }
 }
 

        }
    }

    public var onColor: UIColor = .systemBlue
    public var offColor: UIColor = .black

    override public var isHighlighted: Bool {
        didSet {

                alpha = isHighlighted ? 0.5 : 1
            }
        }
    }

    override public func awakeFromNib() {
