title: Minimum size to custom views
body: <p>I have a @IBDesignable custom view.</p>
  
  <p>That i want to have a minimum height.</p>
  
  <p>If i add the view in code i override </p>
  
  <pre><code>override init(frame: CGRect) {
      let height = frame.height &gt; minHeight ? minHeight : frame.height
      let minFrame = CGRectMake(frame.origin.x, frame.origin.y, frame.width, height)
      super.init(frame: minFrame)
  }
  </code></pre>
  
  <p>to set minimum height.</p>
  
  <p>when added in storyboard the </p>
  
  <pre><code>required init?(coder aDecoder: NSCoder) {
      super.init(coder: aDecoder)
  }
  </code></pre>
  
  <p>is called.</p>
  
  <p>So where can i set a minimum height?</p>
  
  <p>Thanks</p>