   
 }
 
+/// The positions to select for placement of the label view
 public enum Position:String {
   case TopLeft = "topleft"
   case TopRight = "topright"

    }
  }
  
  @IBInspectable public var lengthPercentage:CGFloat = 50 {
    didSet {
      setNeedsDisplay()
    }
  }
  
  @IBInspectable public var labelText:String = "Hi" {
    didSet {
      setNeedsDisplay()
    }
  }
  
  @IBInspectable public var fontSize:CGFloat = 20
  
  @IBInspectable public var viewColor:UIColor = UIColor.blueColor() {
    didSet {
      setNeedsDisplay()
    }
  }
  
  @IBInspectable public var textColor:UIColor = UIColor.blackColor() {
    didSet {
      setNeedsDisplay()

    self.addSubview(firstLabel)
  }
  
  /// Get the position of the label inside the label view.
  private func getLabelPostion(length:CGFloat) -> (CGFloat,CGFloat,CGFloat,CGFloat,CGFloat) {
    var x = CGFloat()
    var y = CGFloat()
