title: How do I write a custom init for a UIView subclass in Swift?
body: <p>Say I want to <code>init</code> a <code>UIView</code> subclass with a <code>String</code> and an <code>Int</code>.</p>
  
  <p>How would I do this in Swift if I'm just subclassing <code>UIView</code>? If I just make a custom <code>init()</code> function but the parameters are a String and an Int, it tells me that "super.init() isn't called before returning from initializer".</p>
  
  <p>And if I call <code>super.init()</code> I'm told I must use a designated initializer. What should I be using there? The frame version? The coder version? Both? Why?</p>