SVProgressHUD / SVProgressHUD

A clean and lightweight progress HUD for your iOS and tvOS app.
https://github.com/SVProgressHUD/SVProgressHUD
MIT License
12.43k stars 2.64k forks source link

iOS 7 Translucency #218

Closed pixelfreak closed 9 years ago

pixelfreak commented 10 years ago

From reading other closed issues, I thought on iOS 7 the HUD is supposed to be translucent? I am seeing solid white background, how do I make it translucent? My project target is set at 7.0

getaaron commented 10 years ago

iOS 7.0.3 started respecting the alpha of UIToolvar's barTintColor. So it actually looks more opaque in iOS 7.0.3 than it did in other versions. (If you look really carefully, it is still a tiny bit translucent.) We should probably update the code base to use a UIColpr with a lower alpha value.

getaaron commented 10 years ago

We could also provide support for using other third party libraries if present. For example, https://github.com/nicklockwood/FXBlurView does a good job of live-blurring. We could check if it's available and use it, instead of UIToolbar, if it is.

VGraupera commented 10 years ago

I was able to make it translucent by setting a background color using UIAppearance. Please see https://github.com/samvermette/SVProgressHUD/pull/106

andrewtheis commented 10 years ago

@VGraupera What values did you use?

VGraupera commented 10 years ago

Using rubymotion:

SVProgressHUD.appearance.setHudBackgroundColor("#999".uicolor(0.3))

karolkulesza commented 10 years ago

@getaaron I've been playing around with lower 'alpha' values, but there is still no translucency on iOS 7.0.3. Would you be able to say which param should be modified? (actually, I've tried all of them, but with no success).

svyatogor commented 10 years ago

I am having exactly same issue on 7.0.3. Setting alpha colour doesn't help it just makes black look greyish. Downgrading to 0.9 solved the problem.

iwasrobbed commented 10 years ago

Honestly, the new white background of the HUD was not a good change (or at least the implementation of it wasn't well-executed). Most iOS 7 apps now have white backgrounds which makes the HUD almost invisible. Reverting back to 0.9

rahulgautam commented 10 years ago

@iwasrobbed :+1:

angelolloqui commented 10 years ago

Same issue here :( Use of UIToolbar is not a good idea, or at least it should be optional. Downgrading to 0.9 gives me a compilation error (and also lacks a lot of interesting changes) and there is no stable tag for 1.1 yet. Using :master is also not an option for a stable app, so I am kind of trapped. When can we expect a 1.1 release?

raspu commented 10 years ago

As an alternative workaround when using Cocoapods, I added this line to the pod pch, to make the library believe that is running on iOS 6:

define __IPHONE_OS_VERSION_MIN_REQUIRED 60000

Just ignore the warning, and remember to re add it if you update/install pods.

honkmaster commented 9 years ago

Please check out #384 and help us to find a good solution for live blurring.