         }
     }
 
-    override func layoutSubviews() {
+    override public func layoutSubviews() {
         super.layoutSubviews()
         let height: CGFloat = self.frame.height
         let width: CGFloat = self.frame.width


let rcSwitchFontSize: CGFloat = 12

class RCSwitch: UIControl, CAAnimationDelegate {

    // the text showing when isOn == true
    var onText: String = "" {

        }
    }

    public func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
        self.isUserInteractionEnabled = true
    }


    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }

