title: programmatically set a button width and height
body: <p>I would like to programmatically customize the <code>UIButton</code>. My code starts here:</p>
  
  <pre><code>class MyButton: UIButton {
      override func awakeFromNib() {
          super.awakeFromNib()
  
          layer.shadowRadius = 5.0
          ...
      }
  }
  </code></pre>
  
  <p>Now I would like to define a constant width and height for the button, how to do it in code?</p>