 
 import UIKit
 
+/**
+ A YokoTextField is a subclass of the TextFieldEffects object, is a control that displays an UITextField with a customizable 3D visual effect on the background of the control.
+ */
 @IBDesignable public class YokoTextField: TextFieldEffects {
     
+    /**
+     The color of the placeholder text.
+     
+     This property applies a color to the complete placeholder string. The default value for this property is a black color.
+     */
+    @IBInspectable dynamic public var placeholderColor: UIColor? {
+        didSet {
+            updatePlaceholder()
+        }
+    }
+    
+    /**
+     The view’s foreground color.
+     
+     The default value for this property is a clear color.
+     */
+    @IBInspectable dynamic public var foregroundColor: UIColor = UIColor.blackColor() {
+        didSet {
+            updateForeground()
+        }
+    }
+    
     override public var placeholder: String? {
         didSet {
             updatePlaceholder()
-        }
-    }
-    
-    @IBInspectable dynamic public var placeholderColor: UIColor? {
-        didSet {
-            updatePlaceholder()
-        }
-    }
-    
-    @IBInspectable dynamic public var foregroundColor: UIColor = UIColor.blackColor() {
-        didSet {
-            updateForeground()
         }
     }
     

        addSubview(placeholderLabel)
        layer.addSublayer(foregroundLayer)        
    }
    
    private func updateForeground() {
        foregroundView.frame = rectForForeground(frame)

    private let placeholderInsets = CGPoint(x: 6, y: 6)
    private let textFieldInsets = CGPoint(x: 6, y: 6)
    
    // MARK: - TextFieldsEffects
    
    override public func drawViewsForRect(rect: CGRect) {
        updateForeground()
