title: How to initiate a singleton in Swift?
body: <p>I have a class called <code>HTTPHelper</code> which is responsible for doing all my back end API requests. All methods in this class are <code>class</code> methods. As you know instance properties cannot be used from within a <code>class</code> method. I have some properties that need initialization with a <code>do{}catch{}</code> block which currently are being initiated from within an <code>init(){}</code> like so:</p>
  
  <pre><code>class HTTPHelper{
      init(){
          do {
              //initiate property
          } catch{}
      }
  }
  </code></pre>
  
  <p>My question is, is there a mechanism similar to an <code>init(){}</code> that would initiated a static property for a singleton?</p>