 //  Copyright © 2016 Mukesh Thawani. All rights reserved.
 //
 
-import Foundation
-
+import UIKit
+
+/**
+ 
+ TriLabelView for iOS.
+ Project home: "https://github.com/mukeshthawani/TriLabelView"
+ 
+ */
 @IBDesignable public class TriLabelView: UIView {
   
   private var length = CGFloat()
   private var newRect = CGRect()
   
+  /// The position of the label view.
   public var position:Position = .TopLeft {
     didSet {
       setNeedsDisplay()
     }
   }
   
+  /// The postion of the label view for IB.
   @available(*, unavailable, message="This property is reserved for IB. Use position instead")
   @IBInspectable public var positionName: String? {
     didSet {

    return(x,y,labelAngle,textWidth,textHeight)
  }
  
  func getTextCGSize(text:String) -> (CGFloat,CGFloat) {
    let uiFont:UIFont = UIFont.init(name: "HelveticaNeue-Bold", size: fontSize)!
    let textAttr = [NSFontAttributeName:uiFont]
    let nsText = text as NSString

    }
  }
  
  /// Percentage of length of the label view to parent view.
  @IBInspectable public var lengthPercentage:CGFloat = 50 {
    didSet {
      setNeedsDisplay()
    }
  }
  
  /// The text displayed by the label view.
  @IBInspectable public var labelText:String = "Hi" {
    didSet {
      setNeedsDisplay()
    }
  }
  
  /// The font size of the text.
  @IBInspectable public var fontSize:CGFloat = 20
  
  /// The background color of the label view.
  @IBInspectable public var viewColor:UIColor = UIColor.blueColor() {
    didSet {
      setNeedsDisplay()
    }
  }
  
  /// The color of the text.
  @IBInspectable public var textColor:UIColor = UIColor.blackColor() {
    didSet {
      setNeedsDisplay()
