eternityz / RWBlurPopover

Show a UIViewController in a popover with background blurred.
MIT License
223 stars 47 forks source link

One question #6

Open KatkayApps opened 8 years ago

KatkayApps commented 8 years ago

Thanks for this project. It is very good. I ask you a question: is there a way to animate the background when the popover is dismissed? I mean, to fade out the background from blurred to normal while the popover is going away? Where in code should this be done? Sorry for the question but I am not good understanding the code written by another person. THANKS:

eternityz commented 8 years ago

When I developed this code, animating a UIVisualEffectsView with its alpha would not work and cause an error message like this:

<UIVisualEffectView 0x7fdf5bcb6e80> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.

But I just found someone on Stackoverflow posted this solution for iOS9: http://stackoverflow.com/questions/29307827/how-does-one-fade-a-uivisualeffectview-and-or-uiblureffect-in-and-out http://stackoverflow.com/questions/29307827/how-does-one-fade-a-uivisualeffectview-and-or-uiblureffect-in-and-out.

Right now I'm busy with other project, so it will take some time for me to update this code. Please feel free to make a pull request.

Regards, Bin

On 2016年1月22日, at 05:16, lunarbase notifications@github.com wrote:

Thanks for this project It is very good I ask you a question: is there a way to animate the background when the popover is dismissed? I mean, to fade out the background from blurred to normal while the popover is going away? Where in code should this be done? Sorry for the question but I am not good understanding the code written by another person THANKS:

— Reply to this email directly or view it on GitHub https://github.com/eternityz/RWBlurPopover/issues/6.

KatkayApps commented 8 years ago

thanks. Your explanation was amazing. if I manage to understand your code I will make a pull request. THANKS

On Sun, Jan 24, 2016 at 1:15 PM, Bin Zhang notifications@github.com wrote:

When I developed this code, animating a UIVisualEffectsView with its alpha would not work and cause an error message like this:

<UIVisualEffectView 0x7fdf5bcb6e80> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.

But I just found someone on Stackoverflow posted this solution for iOS9: http://stackoverflow.com/questions/29307827/how-does-one-fade-a-uivisualeffectview-and-or-uiblureffect-in-and-out < http://stackoverflow.com/questions/29307827/how-does-one-fade-a-uivisualeffectview-and-or-uiblureffect-in-and-out>.

Right now I'm busy with other project, so it will take some time for me to update this code. Please feel free to make a pull request.

Regards, Bin

On 2016年1月22日, at 05:16, lunarbase notifications@github.com wrote:

Thanks for this project It is very good I ask you a question: is there a way to animate the background when the popover is dismissed? I mean, to fade out the background from blurred to normal while the popover is going away? Where in code should this be done? Sorry for the question but I am not good understanding the code written by another person THANKS:

— Reply to this email directly or view it on GitHub < https://github.com/eternityz/RWBlurPopover/issues/6>.

— Reply to this email directly or view it on GitHub https://github.com/eternityz/RWBlurPopover/issues/6#issuecomment-174297185 .