     
     placeholderLabel.frame.origin.y = -placeholderLabel.frame.height + placeholderVerticalOffset
   }
-
-  /// Layout the a button.
-  func layoutButton(button: UIButton?) {
-    button?.frame = CGRect(x: bounds.width - bounds.height, y: 0, width: bounds.height, height: bounds.height)
-  }
   
   /// Layout the leftView.
   func layoutLeftView() {

  func prepareTextAlignment() {
    textAlignment = .rightToLeft == Application.userInterfaceLayoutDirection ? .right : .left
  }
}

fileprivate extension TextField {

    set(value) {
      guard value else {
        visibilityIconButton?.removeTarget(self, action: #selector(handleVisibilityIconButton), for: .touchUpInside)
        removeFromRightView(view: visibilityIconButton)
        visibilityIconButton = nil
        return
      }
