Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

macsleven
Copy link
Contributor

@macsleven macsleven commented Feb 1, 2022

closes #879
support PR for #875

@macsleven macsleven marked this pull request as ready for review February 1, 2022 23:04
@JustinBeBoy
Copy link
Contributor

Some pages still break layout

Screenshot 2021-09-27 at 21 59 44 Screenshot 2021-09-27 at 21 59 44

Screenshot 2021-09-27 at 21 59 44 Screenshot 2021-09-27 at 21 59 44

Screenshot 2021-09-27 at 21 59 44. Screenshot 2021-09-27 at 21 59 44

Crash app when click watch wallet
Screenshot 2021-09-27 at 21 59 44

@@ -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)

Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some views does not support right to left languages
2 participants