Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- didSet
- {
- updateRightView()
- }
- }
- {
- //for right Image
- if let image = rightImage
- {
- button.imageEdgeInsets = UIEdgeInsetsMake(0, -16, 0, 0)
- button.frame = CGRect(x: 0, y: 0, width: 29, height: 29)
- // button.addTarget(self, action: #selector(self.refresh), for: .touchUpInside)
- rightView = button
- rightViewMode = .always
- } else
- {
- rightViewMode = UITextFieldViewMode.never
- rightView = nil
- }
- }
Add Comment
Please, Sign In to add comment