Skip to content

Commit 0f6e703

Browse files
committed
Reorder the public override declarations
1 parent c398952 commit 0f6e703

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

Source/ICKeyboardDismissAccessoryView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ public class ICKeyboardDismissAccessoryView: UIView {
4343

4444
// MARK: - Initialization
4545

46-
override public init(frame: CGRect) {
46+
public override init(frame: CGRect) {
4747
super.init(frame: frame)
4848
setUpSubviews()
4949
}
5050

51-
required public init?(coder aDecoder: NSCoder) {
51+
public required init?(coder aDecoder: NSCoder) {
5252
super.init(coder: aDecoder)
5353
setUpSubviews()
5454
}
5555

5656
// MARK: - UIView
5757

58-
override public func pointInside(point: CGPoint, withEvent event: UIEvent?) -> Bool {
58+
public override func pointInside(point: CGPoint, withEvent event: UIEvent?) -> Bool {
5959
for subview in subviews {
6060
if !subview.hidden && subview.alpha > 0 &&
6161
subview.userInteractionEnabled &&

Source/ICKeyboardDismissTextField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class ICKeyboardDismissTextField: UITextField {
3636

3737
// MARK: - Initialization
3838

39-
override public init(frame: CGRect) {
39+
public override init(frame: CGRect) {
4040
super.init(frame: frame)
4141
setUpAccessoryView()
4242
}
@@ -48,7 +48,7 @@ public class ICKeyboardDismissTextField: UITextField {
4848

4949
// MARK: - UIResponder
5050

51-
override public func becomeFirstResponder() -> Bool {
51+
public override func becomeFirstResponder() -> Bool {
5252
if UI_USER_INTERFACE_IDIOM() == .Phone {
5353
accessoryView.alpha = 1
5454
}

Source/ICTokenField.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,34 +181,34 @@ public class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDele
181181

182182
// MARK: - Initialization
183183

184-
override public init(frame: CGRect) {
184+
public override init(frame: CGRect) {
185185
super.init(frame: frame)
186186
setUpSubviews()
187187
}
188188

189-
required public init?(coder aDecoder: NSCoder) {
189+
public required init?(coder aDecoder: NSCoder) {
190190
super.init(coder: aDecoder)
191191
setUpSubviews()
192192
}
193193

194194
// MARK: - UIResponder
195195

196-
override public func isFirstResponder() -> Bool {
196+
public override func isFirstResponder() -> Bool {
197197
return inputTextField.isFirstResponder() || super.isFirstResponder()
198198
}
199199

200-
override public func becomeFirstResponder() -> Bool {
200+
public override func becomeFirstResponder() -> Bool {
201201
return inputTextField.becomeFirstResponder()
202202
}
203203

204-
override public func resignFirstResponder() -> Bool {
204+
public override func resignFirstResponder() -> Bool {
205205
super.resignFirstResponder()
206206
return inputTextField.resignFirstResponder()
207207
}
208208

209209
// MARK: - UIView
210210

211-
override public func layoutSubviews() {
211+
public override func layoutSubviews() {
212212
super.layoutSubviews()
213213
layoutTokenTextField()
214214
}

0 commit comments

Comments
 (0)