title: How to change the allignment of a character in Attributed String
body: <p>This is what I want to achieve.</p>
  
  <p><a href="https://i.stack.imgur.com/jmVnK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jmVnK.png" alt="enter image description here"></a></p>
  
  <p>I used an <code>attributedString</code>, took the range of character <strong>$</strong> and applied attributes to it like below way:</p>
  
  <pre><code>let str = "$4"
  let r1 = str.range(of: "$")!
  let n1 = NSRange(r1, in: str)
  let atrStr = NSMutableAttributedString(string: str)
  atrStr.addAttributes([NSAttributedStringKey.font : UIFont.systemFont(ofSize: 25)], range: n1)
  atrStr.addAttributes([NSAttributedStringKey.foregroundColor : UIColor.lightGray], range: n1)
  lbl.attributedText = atrStr
  </code></pre>
  
  <p>But the result is</p>
  
  <p><a href="https://i.stack.imgur.com/w3XPJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w3XPJ.png" alt="enter image description here"></a></p>
  
  <p>How do I change the allignment of that specific character from bottom to top?</p>