Skip to content

Commit 455e40f

Browse files
committed
Update README.md
2 parents f10fecd + 92e27b5 commit 455e40f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,21 @@ Also you can configure style via Interface Builder
9898
case .didTextChanged( _): print("DidTextChanged")
9999
case .didExtraButtonPressed(let floatingTextField, let index, let button):
100100
if index == 0 {
101-
// Change current text format
102-
floatingTextField.toggleTextFormat()
101+
// Change current text format
102+
floatingTextField.toggleTextFormat()
103103

104-
// Update button if needed
105-
button.setImage(UIImage(named: self.isSecureFormat ? "eye_off" : "eye_on")!, for: .normal)
104+
// Update button if needed
105+
button.setImage(UIImage(named: floatingTextField.isSecute() ? "eye_off" : "eye_on")!, for: .normal)
106106
}
107107
}
108108
}
109109
```
110110

111111
## Requirements
112112

113-
- CocoaPods 1.0.0+
113+
* iOS 9.0+
114+
* CocoaPods 1.0.0+
115+
* Swift 5
114116

115117
## Installation
116118

0 commit comments

Comments
 (0)