Skip to content

Commit

Permalink
Merge pull request #126 from Mehrdadmaskull/rtlfix
Browse files Browse the repository at this point in the history
RTL Fix
  • Loading branch information
Hugo Tunius authored Apr 14, 2017
2 parents 1003ad9 + d677310 commit 5a5cf8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Master
* Fix for animation layout issue [#99](https://github.com/Skyscanner/SkyFloatingLabelTextField/issues/99) [#101](https://github.com/Skyscanner/SkyFloatingLabelTextField/pull/101). Thanks to [@skerkewitz](https://github.com/skerkewitz).
* Silence warnings due to `M_PI` being deprecated in Xcode 8.3 [#116](https://github.com/Skyscanner/SkyFloatingLabelTextField/pull/116). Thanks to [@z3bi](https://github.com/z3bi).
* Adds UIAppearance support [#118](https://github.com/Skyscanner/SkyFloatingLabelTextField/pull/118). Thanks to [mwfire](https://github.com/mwfire).
* Fix for RTL issue while editing texts [#126](https://github.com/Skyscanner/SkyFloatingLabelTextField/pull/126). Thanks to [@mehrdadmaskull](https://github.com/Mehrdadmaskull)

v3.0.0
-----------------
Expand Down
2 changes: 2 additions & 0 deletions Sources/SkyFloatingLabelTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ open class SkyFloatingLabelTextField: UITextField {
fileprivate func updateTextAligment() {
if(self.isLTRLanguage) {
self.textAlignment = .left
self.titleLabel.textAlignment = .left
} else {
self.textAlignment = .right
self.titleLabel.textAlignment = .right
}
}

Expand Down

0 comments on commit 5a5cf8b

Please sign in to comment.