0

I want to display on an Xcode project the following char: "؋" which is a currency, and on the right a value. For example (in dollars): $100. But with this char everything I wrote on the right side appears on the left, and I don't know why. Hear how it appears: ؋100. The sign is on the right, but I wrote "100" with the cursor on the right of the currency symbol.

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116
  • The currency is right to leg as Arabian letter. Try to add a space between the symbol and the value. – Ptit Xav Dec 13 '22 at 13:06
  • It is an Arabic letter, so it is written right to left, and it affect the numbers nearby. There are override characters if you think general rules are broken, else do not mess with internationalization just because you are used in a way. – Giacomo Catenazzi Dec 13 '22 at 13:44
  • I believe this is a duplicate, but if you believe there is more to the question, please comment here. In this case, though, the correct solution is not to try to move the currency symbol by hand. You should use a NumberFormatter (or in SwiftUI a FormatStyle) configured for currency in the desired Locale. It will handle the placement. – Rob Napier Jan 15 '23 at 03:36

0 Answers0