title: Change height of UIProgressView (Bar style) in Swift
body: <p>I created a UIProgressView (bar style) in Swift 2.2 and would now like to alter its height. Some other posts suggested to use <code>CGAffineTransformScale</code> to change the height. However, for some reason this approach doesn't seem to work, as it does not have any effect on the height of the UIProgressView.</p>
  
  <p>Below you will find my code:</p>
  
  <pre><code>let progressBar = UIProgressView(progressViewStyle: .Bar)
  progressBar.progress = 0.5
  progressBar.translatesAutoresizingMaskIntoConstraints = false
  progressBar.transform = CGAffineTransformScale(progressBar.transform, 1, 20)
  self.navigationItem.titleView = progressBar
  </code></pre>
  
  <p>I appreciate your help, thanks a lot!</p>