How to remove blur effect from UIProgressView / make progressView's background complete transparent?

358 Views Asked by At

Simple Requirement: A progress view with transparent background with no blur effect.

  1. 1st image: Expected progress view
  2. 2nd image: That's how it currently looks
  3. 3rd image: Visual effect applied by apple on UIProgressView

Issue: UIVisualEffect is interfering with requirement.

Setup: progressTintColor is set to white and trackTintColor to white with 30% opacity.

I have tried removing UIVisualEffect by looping through subviews and removing subview which is UIVisualEffectView but no luck!!!

for subview in blurView.subviews {
  if subview is UIVisualEffectView {
    subview.removeFromSuperview()
  }
}

Expected progress view with transparent background

Output

VisualEffect applied by apple

Any help would be greatly appreciated!

0

There are 0 best solutions below