Question: I want to increase the height of progress view in iOS 6 and below i am doing this using appearence method

```
  UIImage *progressImage = [[UIImage imageNamed:@"sliderbk-progress.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 4, 0, 5)];
[[UIProgressView appearance] setProgressImage:progressImage];

```

but now in iOS7 this code is not working i even try given below code but no use. Any help will be helpfull. Thanks

```
[[UIProgressView appearance] setFrame:CGRectMake(20, 100, 280, 100)];

```

Answer: 
Here's the ***Swift*** version of user3189408 and Rushabh's great solutions for newer developers and swift enthusiasts like me. Tested for iOS 7+/Swift 2.0.

```
    progressView.transform = CGAffineTransformMakeScale(1.0, 5.0)

```
If you're using Autolayout, then the solution is simple: create a height constraint as explained by one of the answers here.

However, chances are you're here because you're creating the progress bar in code.

In this case, solving this through the `transform` method is not ideal if the view has round corners, since `CGAffineTransform` will mess with how the corner radius is drawn.

I would subclass the `UIProgressView` as follows:

```
class ProgressBarThick: UIProgressView {

    var height : CGFloat = 12
    var width: CGFloat = 0.0

    override func sizeThatFits(_ size: CGSize) -> CGSize {
        return CGSize(width: width,
                      height: height)
    }
}

```

Set the height and width before drawing the view.