title: How to express Strings in Swift using Unicode hexadecimal values (UTF-16)
body: <p>I want to write a Unicode string using hexadecimal values in Swift. I have read the <a href="https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html" rel="noreferrer">documentation</a> for String and Character so I know that I can use special Unicode characters directly in strings like the following:</p>
  
  <pre><code>var variableString = "Cat‼" // "Cat" + Double Exclamation + cat emoji
  </code></pre>
  
  <p>But I would like to do it using the Unicode code points. The docs (and <a href="https://stackoverflow.com/questions/30983286/characters-and-strings-in-swift">this question</a>) show it for characters, but are not very clear about how to do it for strings.</p>
  
  <p>(Note: Although the answer seems obvious to me now, it wasn't obvious at all just a short time ago. I am answering my own question below as a means of learning how to do this and also to help myself understand Unicode terminology and how Swift Characters and Strings work.)</p>