title: How to write init method in Swift?
body: <p>I want to write an <code>init</code> method in Swift. Here I initialize an <code>NSObject</code> class in Objective-C:</p>
  
  <pre><code>-(id)initWithNewsDictionary:(NSDictionary *)dictionary
  {
      self = [super init];
      if (self) {
          self.title           = dictionary[@"title"];
          self.shortDescription = dictionary[@"description"];
          self.newsDescription = dictionary[@"content:encoded"];
          self.link            = dictionary[@"link"];
          self.pubDate         = [self getDate:dictionary[@"pubDate"]];
  
      }
      return self;
  }
  </code></pre>
  
  <p>How can I write this method in Swift ?</p>