title: Swift 3- Convert characters side from right to left or left to right
body: <p>I created xAxis to show my characters in the center of the screen because I'm creating Puzzle Word project, <strong>now my issue is my characters showing from left, how to convert from left to right ??</strong> because my characters are Arabic. </p>
  
  <p>For example my word is (London) but show me inversion (nodnoL) This example is in English. <strong>So how to fix this issue convert to right side or left side ??</strong></p>
  
  <p>This my code :</p>
  
  <pre><code>for (indexTar, tar) in data.ans.characters.enumerated() {
  
      let x : CGFloat = (width / 2) - (totalWidth / 2)
      let xx : CGFloat = (CGFloat(indexTar) * targetWidth) + (CGFloat(indexTar) * 5) + 20
      var xAxis : CGFloat = (x + xx)                    
      let targetLabel = UILabel(frame: CGRect(x: xAxis, y: yAxis, width: targetWidth, height: 5.0))
  
      .....
  }
  </code></pre>