Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blur isn't applied on background view until it's rendered onto screen #18

Open
KiranPanesar opened this issue Jan 15, 2015 · 5 comments
Assignees

Comments

@KiranPanesar
Copy link

So I wanted to show a KVNProgress HUD as soon as a view controller's view appears on the screen, so the user can only see the blurred overlay.

Right now if you call [KVNProgress show] is anything other than the -viewDidAppear, the HUD's background is totally transparent.

I would suggest listening to the view's properties to determine when its visibility changes and redraw the blur when that happens. Open to here other ideas.

@kevin-hirsch
Copy link
Collaborator

It is because it's a static blur based on a screenshot of the view. In your case, the view is not yet visible so this causes the issue you have. It's planned that I implement also a dynamic blur, so I'll keep you in touch from here when it's done ;)

@KiranPanesar
Copy link
Author

Yeah, I thought that was the case.

A possibility for iOS 8+ would be UIBlurEffect:
https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIBlurEffect_Ref/index.html

@kevin-hirsch
Copy link
Collaborator

Yes, that what I was thinking for iOS 8, but I will have to find another solution for iOS 7 compatibility.

@KiranPanesar
Copy link
Author

We have implemented UIBlurEffect for iOS 8 on our internal projects and we're exploring GPUBlur and other hardware accelerated options for iOS 7 support.

We're going to be working on that at the end of next week, so if we find a good hardware-accelerated live blur method for our projects, I will share it here!

@kevin-hirsch
Copy link
Collaborator

Thanks a lot! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants