title: How can we make 'static' variables Thread-Safe in swift?
body: <pre><code>class MyClass {
       static var name: String = "Hello"
  }
  </code></pre>
  
  <p>Static variables in swift are not thread-safe by default. If I want to make them thread-safe, how can I achieve that ?</p>