title: How can i call func test() automatically on UIViewController?
body: <p>How can <code>test()</code> function auto calls?  i don't want to call it on <code>viewdidLoad</code> So that whenever any viewController class initiate the <code>test()</code> function invokes. i tried alot &amp; in objC <code>load()</code> function can do. but don't know how to achieve this in swift.
  Below is sample code.</p>
  
  <pre><code>extension UIViewController{
      func test() {
          print("test")
      }
  }
  
  class MyViewController: UIViewController {
      //Automatically calls test()
  }
  </code></pre>