         }
     }
     
-    @IBInspectable var shadowOffset: CGSize = CGSize(width: 1, height: 1) {
-        didSet {
-            layoutSubviews()
-        }
-    }
-    
     @IBInspectable var optionalPlaceholder: String = "" {
         didSet {
-            layoutSubviews()
+            updateView()
         }
     }
     

        }
        
        // Placeholder text color
        attributedPlaceholder = NSAttributedString(string: placeholder != nil ?  placeholder! : "", attributes:[NSForegroundColorAttributeName: placeholderColor])
        
        if(optionalPlaceholder.characters.count > 0){
            let optionalPlaceholderText = NSAttributedString(string: optionalPlaceholder, attributes:[NSFontAttributeName:UIFont.italicSystemFont(ofSize: 10)])
            let combination = NSMutableAttributedString()
            combination.append(placeholderText)
            combination.append(optionalPlaceholderText)
            attributedPlaceholder = combination
        }
    }
    

        return bounds.insetBy(dx: leftImageWidthHeight.width + leftPadding * 2, dy: 0)
    }
}
