Skip to content

Commit

Permalink
Merge pull request Skyscanner#145 from Skyscanner/fix-errors-in-subcl…
Browse files Browse the repository at this point in the history
…assing-example

Fix errors in subclassing example
  • Loading branch information
Hugo Tunius authored May 23, 2017
2 parents 7a1ee28 + 84a35e0 commit 61e0968
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public class IconTextField: SkyFloatingLabelTextField {
// MARK: Handling the icon color

override public func updateColors() {
updateColors()
super.updateColors()

updateIconLabelColor()
}

Expand All @@ -79,7 +80,7 @@ public class IconTextField: SkyFloatingLabelTextField {
}
override public func editingRect(forBounds bounds: CGRect) -> CGRect {
var rect = super.textRect(forBounds: bounds)
rect.origin.x += iconWidth - iconWidth
rect.origin.x += iconWidth
rect.size.width -= iconWidth
return rect
}
Expand Down

0 comments on commit 61e0968

Please sign in to comment.