Skip to content

Right Language views support#885

Open
macsleven wants to merge 7 commits intoplanetdecred:masterfrom
macsleven:lang_align_views
Open

Right Language views support#885
macsleven wants to merge 7 commits intoplanetdecred:masterfrom
macsleven:lang_align_views

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


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

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