title: Instantiate custom button from code and Storyboard - how to make an init method
body: <p>I would like to create a button like this:</p>
  
  <pre><code>import UIKit
  
  class EKLikeButton: UIButton {
  
    required init(coder aDecoder: NSCoder) {
      super.init(coder: aDecoder)
      self.layer.cornerRadius = 5.0;
      self.layer.borderColor = UIColor.redColor().CGColor
      self.layer.borderWidth = 1.5
      self.backgroundColor = UIColor.blueColor()
      self.tintColor = UIColor.whiteColor()
  
    }
  }
  </code></pre>
  
  <p>but the only way to make it seems to be to set a pre-existing button in a Storyboard. I'd like to be able to do:</p>
  
  <pre><code>let btn = EKLikeButton()
  btn.frame=CGRectMake(10.0, 10.0, 40.0, 40.0)
  </code></pre>
  
  <p>but when I try the above, I get </p>
  
  <blockquote>
    <p>Missing argument for parameter 'coder' in call</p>
  </blockquote>
  
  <p>How would I make an init function that can handle both from code or from storyboard in Swift?</p>