title: Static Block in Swift
body: <p>In Java, I use static block to execute some code when the class is called like in this example"</p>
  
  <pre><code>Class Name
   {
       static
       {
           for(int i = 0; i&lt;10; i++)
           {
  
           }
       } 
   }
  </code></pre>
  
  <p>How do I translate that code in Swift?</p>