-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right Language views support #885
base: master
Are you sure you want to change the base?
Conversation
…loating placeholder
@@ -17,7 +17,8 @@ class FloatingPlaceholderTextField: UITextField { | |||
return UIButton(type: .custom) | |||
}() | |||
|
|||
let textPadding = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 0) | |||
var textPadding = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 0) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
let layoutDirection = UIView.userInterfaceLayoutDirection(for: attribute) | ||
if layoutDirection == .leftToRight { | ||
self.textAlignment = .left | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
@@ -62,6 +70,15 @@ class FloatingPlaceholderTextView: UITextView { | |||
if let lastButton = self.subviews.last(where: { $0 is UIButton }) { | |||
trailingAnchor = lastButton.leadingAnchor | |||
trailingConstant = -16 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
closes #879
support PR for #875