diff --git a/Source/ConstraintConstantTarget.swift b/Source/ConstraintConstantTarget.swift index 8a32519..801bb79 100644 --- a/Source/ConstraintConstantTarget.swift +++ b/Source/ConstraintConstantTarget.swift @@ -107,9 +107,9 @@ extension ConstraintConstantTarget { case .bottom, .bottomMargin: return -value.bottom case .leading, .leadingMargin: - return (ConstraintConfig.interfaceLayoutDirection == .leftToRight) ? value.left : -value.right + return (ConstraintConfig.interfaceLayoutDirection == .leftToRight) ? value.left : value.right case .trailing, .trailingMargin: - return (ConstraintConfig.interfaceLayoutDirection == .leftToRight) ? value.right : -value.left + return (ConstraintConfig.interfaceLayoutDirection == .leftToRight) ? -value.right : -value.left case .width: return -(value.left + value.right) case .height: @@ -128,9 +128,9 @@ extension ConstraintConstantTarget { case .bottom: return -value.bottom case .leading: - return (ConstraintConfig.interfaceLayoutDirection == .leftToRight) ? value.left : -value.right + return (ConstraintConfig.interfaceLayoutDirection == .leftToRight) ? value.left : value.right case .trailing: - return (ConstraintConfig.interfaceLayoutDirection == .leftToRight) ? value.right : -value.left + return (ConstraintConfig.interfaceLayoutDirection == .leftToRight) ? -value.right : -value.left case .width: return -(value.left + value.right) case .height: