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

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


        layer.borderWidth = borderWidth
        
        if(enableShadow == true){
            let shadowPath = UIBezierPath(rect: CGRect(x: 0, y: 0, width: self.frame.width, height: self.frame.height))
            layer.shadowColor = shadowColor.cgColor
            layer.shadowOffset = CGSize(width: 0.2, height: 0.2)
            layer.shadowOpacity = shadowOpacity
            layer.shadowRadius = shadowRadius
            layer.masksToBounds =  false
            layer.shadowPath = shadowPath.cgPath
        }
    }
    
    func updateView() {
