     }
 
     /// The text's margin right.
-    @IBInspectable public var marginRight: CGFloat {
+    @IBInspectable open var marginRight: CGFloat {
         get {
-            if defaultMode && self.clearButtonMode != .Never {
+            if defaultMode && self.clearButtonMode != .never {
                 return 24.0
             } else {
                 return textMarginRight

     * Restores the placeholder text to its original value, before it was removed when text field became
     * first responder.
     */
    override public func resignFirstResponder() -> Bool {
        let resigendFirstResponder = super.resignFirstResponder()

        if resigendFirstResponder {

     * Removes the placeholder text when text field becomes first responder to avoid cursor jumping,
     * if text alignment is set to centered.
     */
    override open func becomeFirstResponder() -> Bool {
        let becameFirstResponder = super.becomeFirstResponder()

        if becameFirstResponder {
