title: Is there an API in Swift to determine processor register size of iOS device?
body: <p>I am displaying to the user whether their device is 32-bit or 64-bit. Currently, I am determining that based on the value of UInt.max:</p>
  
  <pre><code>let cpuRegisterSize = count(String(UInt.max, radix: 2))
  </code></pre>
  
  <p>It feels a little hacky, so I was wondering if there was an API in Swift that returns that value instead. UIDevice doesn't seem to hold that information, from what I can tell.</p>