From cfd68baf8fb64e9d1f007679e6df733bae8a7b5d Mon Sep 17 00:00:00 2001 From: "K. Al Ghaithi" <{ID}+{username}@users.noreply.github.com> Date: Mon, 27 May 2024 10:08:27 +0400 Subject: [PATCH] Fix the editing field X position for RTL languages --- Sources/SkyFloatingLabelTextFieldWithIcon.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SkyFloatingLabelTextFieldWithIcon.swift b/Sources/SkyFloatingLabelTextFieldWithIcon.swift index 8bcc9da9..eb8bc531 100644 --- a/Sources/SkyFloatingLabelTextFieldWithIcon.swift +++ b/Sources/SkyFloatingLabelTextFieldWithIcon.swift @@ -277,7 +277,7 @@ open class SkyFloatingLabelTextFieldWithIcon: SkyFloatingLabelTextField { if isLTRLanguage { rect.origin.x += CGFloat(iconWidth + iconMarginLeft) } else { - rect.origin.x -= CGFloat(iconWidth + iconMarginLeft) + // don't change the editing field X position for RTL languages } rect.size.width -= CGFloat(iconWidth + iconMarginLeft) return rect