Skip to content

Commit 8ca40dd

Browse files
authored
Merge pull request raulriera#117 from Twas/fixing_typos
Fixing typos
2 parents 84e5ad6 + 5aa2cd9 commit 8ca40dd

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

TextFieldEffects/TextFieldEffects/AkiraTextField.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import UIKit
1616
private let borderSize: (active: CGFloat, inactive: CGFloat) = (1, 2)
1717
private let borderLayer = CALayer()
1818
private let textFieldInsets = CGPoint(x: 6, y: 0)
19-
private let placeHolderInsets = CGPoint(x: 6, y: 0)
19+
private let placeholderInsets = CGPoint(x: 6, y: 0)
2020

2121
/**
2222
The color of the border.
@@ -32,7 +32,7 @@ import UIKit
3232
/**
3333
The color of the placeholder text.
3434

35-
This property applies a color to the complete placeholder string. The default value for this property is a black color.
35+
This property applies a color to the complete placeholder string. The default value for this property is a black color.
3636
*/
3737
@IBInspectable dynamic open var placeholderColor: UIColor = .black {
3838
didSet {
@@ -113,7 +113,7 @@ import UIKit
113113
}
114114

115115
private var placeholderHeight : CGFloat {
116-
return placeHolderInsets.y + placeholderFontFromFont(font!).lineHeight;
116+
return placeholderInsets.y + placeholderFontFromFont(font!).lineHeight
117117
}
118118

119119
private func rectForBounds(_ bounds: CGRect) -> CGRect {
@@ -124,7 +124,7 @@ import UIKit
124124

125125
open override func placeholderRect(forBounds bounds: CGRect) -> CGRect {
126126
if isFirstResponder || text!.isNotEmpty {
127-
return CGRect(x: placeHolderInsets.x, y: placeHolderInsets.y, width: bounds.width, height: placeholderHeight)
127+
return CGRect(x: placeholderInsets.x, y: placeholderInsets.y, width: bounds.width, height: placeholderHeight)
128128
} else {
129129
return textRect(forBounds: bounds)
130130
}

TextFieldEffects/TextFieldEffects/HoshiTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ import UIKit
7777
private let activeBorderLayer = CALayer()
7878
private var activePlaceholderPoint: CGPoint = CGPoint.zero
7979

80-
// MARK: - TextFieldsEffects
80+
// MARK: - TextFieldEffects
8181

8282
override open func drawViewsForRect(_ rect: CGRect) {
8383
let frame = CGRect(origin: CGPoint.zero, size: CGSize(width: rect.size.width, height: rect.size.height))

TextFieldEffects/TextFieldEffects/IsaoTextField.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import UIKit
6464
private let textFieldInsets = CGPoint(x: 6, y: 6)
6565
private let borderLayer = CALayer()
6666

67-
// MARK: - TextFieldsEffects
67+
// MARK: - TextFieldEffects
6868

6969
override open func drawViewsForRect(_ rect: CGRect) {
7070
let frame = CGRect(origin: CGPoint.zero, size: CGSize(width: rect.size.width, height: rect.size.height))
@@ -82,14 +82,14 @@ import UIKit
8282
override open func animateViewsForTextEntry() {
8383
updateBorder()
8484
if let activeColor = activeColor {
85-
performPlacerholderAnimationWithColor(activeColor)
85+
performPlaceholderAnimationWithColor(activeColor)
8686
}
8787
}
8888

8989
override open func animateViewsForTextDisplay() {
9090
updateBorder()
9191
if let inactiveColor = inactiveColor {
92-
performPlacerholderAnimationWithColor(inactiveColor)
92+
performPlaceholderAnimationWithColor(inactiveColor)
9393
}
9494
}
9595

@@ -143,7 +143,7 @@ import UIKit
143143
width: placeholderLabel.frame.size.width, height: placeholderLabel.frame.size.height)
144144
}
145145

146-
private func performPlacerholderAnimationWithColor(_ color: UIColor) {
146+
private func performPlaceholderAnimationWithColor(_ color: UIColor) {
147147

148148
let yOffset: CGFloat = 4
149149

TextFieldEffects/TextFieldEffects/JiroTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import UIKit
6464
private let textFieldInsets = CGPoint(x: 8, y: 12)
6565
private let borderLayer = CALayer()
6666

67-
// MARK: - TextFieldsEffects
67+
// MARK: - TextFieldEffects
6868

6969
override open func drawViewsForRect(_ rect: CGRect) {
7070
let frame = CGRect(origin: CGPoint.zero, size: CGSize(width: rect.size.width, height: rect.size.height))

TextFieldEffects/TextFieldEffects/KaedeTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import UIKit
6262
private let placeholderInsets = CGPoint(x: 10, y: 5)
6363
private let textFieldInsets = CGPoint(x: 10, y: 0)
6464

65-
// MARK: - TextFieldsEffects
65+
// MARK: - TextFieldEffects
6666

6767
override open func drawViewsForRect(_ rect: CGRect) {
6868
let frame = CGRect(origin: CGPoint.zero, size: CGSize(width: rect.size.width, height: rect.size.height))

TextFieldEffects/TextFieldEffects/MadokaTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import UIKit
6565
private let borderLayer = CAShapeLayer()
6666
private var backgroundLayerColor: UIColor?
6767

68-
// MARK: - TextFieldsEffects
68+
// MARK: - TextFieldEffects
6969

7070
override open func drawViewsForRect(_ rect: CGRect) {
7171
let frame = CGRect(origin: CGPoint.zero, size: CGSize(width: rect.size.width, height: rect.size.height))

TextFieldEffects/TextFieldEffects/MinoruTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import UIKit
6363
private let borderLayer = CALayer()
6464
private var backgroundLayerColor: UIColor?
6565

66-
// MARK: - TextFieldsEffects
66+
// MARK: - TextFieldEffects
6767

6868
override open func drawViewsForRect(_ rect: CGRect) {
6969
let frame = CGRect(origin: CGPoint.zero, size: CGSize(width: rect.size.width, height: rect.size.height))

TextFieldEffects/TextFieldEffects/TextFieldsEffects.swift renamed to TextFieldEffects/TextFieldEffects/TextFieldEffects.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// TextFieldsEffects.swift
2+
// TextFieldEffects.swift
33
// TextFieldEffects
44
//
55
// Created by Raúl Riera on 24/01/2015.
@@ -10,20 +10,20 @@ import UIKit
1010

1111
extension String {
1212
/**
13-
true iff self contains characters.
13+
true if self contains characters.
1414
*/
1515
public var isNotEmpty: Bool {
1616
return !isEmpty
1717
}
1818
}
1919

2020
/**
21-
A TextFieldEffects object is a control that displays editable text and contains the boilerplates to setup unique animations for text entrey and display. You typically use this class the same way you use UITextField.
21+
A TextFieldEffects object is a control that displays editable text and contains the boilerplates to setup unique animations for text entry and display. You typically use this class the same way you use UITextField.
2222
*/
2323
open class TextFieldEffects : UITextField {
2424

2525
/**
26-
The type of animatino a TextFieldEffect can perform.
26+
The type of animation a TextFieldEffect can perform.
2727

2828
- TextEntry: animation that takes effect when the textfield has focus.
2929
- TextDisplay: animation that takes effect when the textfield loses focus.

TextFieldEffects/TextFieldEffects/YokoTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import UIKit
6565
private let placeholderInsets = CGPoint(x: 6, y: 6)
6666
private let textFieldInsets = CGPoint(x: 6, y: 6)
6767

68-
// MARK: - TextFieldsEffects
68+
// MARK: - TextFieldEffects
6969

7070
override open func drawViewsForRect(_ rect: CGRect) {
7171
updateForeground()

TextFieldEffects/TextFieldsDemo/ExampleTableViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ class ExampleTableViewController : UITableViewController {
1717
Set this value to true if you want to see all the "firstName"
1818
textFields prepopulated with the name "Raul" (for testing purposes)
1919
*/
20-
let prefillTextField = false
20+
let prefillTextFields = false
2121

2222
override func viewDidLoad() {
2323
super.viewDidLoad()
2424

25-
guard prefillTextField == true else { return }
25+
guard prefillTextFields == true else { return }
2626

2727
_ = textFields.map { $0.text = "Raul" }
2828
}
29-
}
29+
}

0 commit comments

Comments
 (0)