Skip to content

Commit 5e6880c

Browse files
committed
fix: Fix text writing direction to handle RTL languages.
Fix text writing direction to handle RTL languages.
1 parent 1df4524 commit 5e6880c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/PulseUI/Helpers/TextHelper.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ final class TextHelper {
4848
private let titleParagraphStyle: NSParagraphStyle = {
4949
let paragraphStyle = NSMutableParagraphStyle()
5050
paragraphStyle.lineSpacing = -6
51+
paragraphStyle.baseWritingDirection = .leftToRight
5152
return paragraphStyle
5253
}()
5354

5455
private let bodyParagraphStyle: NSParagraphStyle = {
5556
let paragraphStyle = NSMutableParagraphStyle()
5657
paragraphStyle.lineSpacing = 3
58+
paragraphStyle.baseWritingDirection = .leftToRight
5759
return paragraphStyle
5860
}()
5961

0 commit comments

Comments
 (0)