How to implement method swizzling swift 3.0? : <p>How can I implement method swizzling in <strong>Swift 3.0</strong> ?</p>

<p>I've read <a href="http://nshipster.com/swift-objc-runtime/" rel="noreferrer">nshipster article</a> about it, but in this code's chunk </p>

<pre><code>struct Static {
    static var token: dispatch_once_t = 0
}
</code></pre>

<p>the compiler gives me an error</p>

<blockquote>
  <p>dispatch_once_t is unavailable in Swift: Use lazily initialized
  globals instead</p>
</blockquote>
