Skip to content

Commit b601580

Browse files
authored
Update README.md
1 parent 1a3822f commit b601580

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ Default values:
3333
override func viewDidLoad() {
3434
super.viewDidLoad()
3535

36-
//Attach cursor to the UIViewController
36+
// Attach cursor to the UIViewController
3737
Gatti.attach(to: self)
3838

39-
//Attach cursor and setup the delegate
39+
// Attach cursor with delegate
4040
Gatti.attach(to: self, delegate: self)
4141

42-
//Attach cursor for the specific text fields
42+
// Attach cursor only for some fields
4343
Gatti.attach(to: self, textFields: [UITextField])
4444

45-
//Update cursor moving speed and set a color for all the text fields
45+
// Update cursor moving speed and set defaule color for all the text fields
4646
Gatti.update(to: self, speed: 0.8, color: .red)
4747

4848
...
4949

50-
//Detach cursor from the screen
50+
// Detach cursor from the screen
5151
Gatti.detach(from: self)
5252
}
5353
```
@@ -59,25 +59,25 @@ Default values:
5959
extension ViewController: UITextFieldDelegate, UITextFieldCaretDelegate {
6060

6161
func caretWillAttach(to textField: UITextField) {
62-
//will attach to the UITextField
62+
// Will attach to the UITextField
6363
}
6464

6565
func caretDidDetach(from textField: UITextField) {
66-
//did detach from the UITextField
66+
// Did detach from the UITextField
6767
}
6868

6969
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
70-
//default UITextField delegate
70+
// Handle UITextField delegate methods
7171
return true
7272
}
7373
}
7474
```
7575

7676
## Requirements
7777

78-
* iOS 8.0+
78+
* iOS 10.0+
7979
* CocoaPods 1.0.0+
80-
* Swift 4.2
80+
* Swift 5
8181

8282
## Installation
8383

0 commit comments

Comments
 (0)