   
   func setupLabels() {
     shapeButtonLabel.numberOfLines = 1;
-    shapeButtonLabel.baselineAdjustment = UIBaselineAdjustment.AlignBaselines
+    shapeButtonLabel.baselineAdjustment = UIBaselineAdjustment.alignBaselines
     shapeButtonLabel.adjustsFontSizeToFitWidth = true
     shapeButtonLabel.frame = self.bounds
-    shapeButtonLabel.backgroundColor = UIColor.clearColor()
+    shapeButtonLabel.backgroundColor = UIColor.clear
     shapeButtonLabel.text = self.labelText
-    shapeButtonLabel.textColor = UIColor.whiteColor()
-    shapeButtonLabel.font = UIFont.systemFontOfSize(28.0)
-    shapeButtonLabel.textAlignment = .Center
-    shapeButtonLabel.drawTextInRect(self.bounds)
+    shapeButtonLabel.textColor = UIColor.white
+    shapeButtonLabel.font = UIFont.systemFont(ofSize: 28.0)
+    shapeButtonLabel.textAlignment = .center
+    shapeButtonLabel.drawText(in: self.bounds)
     self.addSubview(shapeButtonLabel)
     self.setNeedsDisplay()
   }

 
  @IBInspectable var radiusWidth: CGFloat = 30
  @IBInspectable var radiusHeight: CGFloat = 30
  @IBInspectable let shapeButtonLabel: UILabel = UILabel(frame: CGRectMake(20.0, 30.0, 300.0, 30.0))
  
  
  override func layoutSubviews() {

  
  func handleTap(sender: UITapGestureRecognizer) {
   print("Tapped!")
   if sender.state == .ended {
    // handling code
       print("Tap ended!")
   }
