Skip to content

Commit

Permalink
fix: Fix text writing direction to handle RTL languages.
Browse files Browse the repository at this point in the history
Fix text writing direction to handle RTL languages.
  • Loading branch information
Mr-Alirezaa committed Jan 23, 2024
1 parent 1df4524 commit 5e6880c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/PulseUI/Helpers/TextHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ final class TextHelper {
private let titleParagraphStyle: NSParagraphStyle = {
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.lineSpacing = -6
paragraphStyle.baseWritingDirection = .leftToRight
return paragraphStyle
}()

private let bodyParagraphStyle: NSParagraphStyle = {
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.lineSpacing = 3
paragraphStyle.baseWritingDirection = .leftToRight
return paragraphStyle
}()

Expand Down

0 comments on commit 5e6880c

Please sign in to comment.