Skip to content

Commit

Permalink
Fix alignment on right-to-left languages in translation view (#665)
Browse files Browse the repository at this point in the history
Fixes 660
  • Loading branch information
mohamede1945 authored Sep 16, 2024
1 parent fb3f8c9 commit 4a3fc40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UI/UIx/SwiftUI/Views/TextAlignmentModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ extension View {
public func textAlignment(follows characterDirection: Locale.LanguageDirection) -> some View {
multilineTextAlignment(characterDirection.textAlignment)
.frame(maxWidth: .infinity, alignment: characterDirection.alignment)
.environment(\.layoutDirection, .leftToRight)
}
}

Expand Down

0 comments on commit 4a3fc40

Please sign in to comment.