title: Swift - Objective-C load class method?
body: <p>In Objective-C, <code>NSObject</code> had a class method called <code>load</code> that gets called when the class is loaded for the first time. What is the equivalent in Swift?</p>
  
  <pre><code>@implementation MyClass
  
  + (void)load
  {
     [self registerClass];
  }
  
  @end
  </code></pre>