FXBlurView icon indicating copy to clipboard operation
FXBlurView copied to clipboard

UIView animations

Open ArturGasparyan opened this issue 11 years ago • 5 comments

bildschirmfoto 2013-09-28 um 13 38 43 Hey!

Is it somehow possible to use FXBlurView with animations? I mean in your examples the user can drag the background and it updates dynamically. Now I have a simple blurView and a UILabel underneath it. I animate so it runs behind the blurView from one side to the other and back.

It seems to update only twice. When it's moving out of the blurView the blurView is empty. When the UILabel moves back in (behind) the blurView the blurView updates once to a static state where the text is blurred - the finish state. It seems as if it is generally doing what it should but only updating at the beginning and the end of the animation. Can it update during the animation too?

ArturGasparyan avatar Sep 28 '13 11:09 ArturGasparyan

Ah, yeah I know why that's happening. I think a fix may be possible. I'll see what I can do.

nicklockwood avatar Sep 28 '13 11:09 nicklockwood

Awesome!

ArturGasparyan avatar Sep 28 '13 11:09 ArturGasparyan

Unfortunately the fix I had it mind doesn't seem to work. All I can suggest is that you animate the text position using an NSTimer or CADisplayLink instead of Core Animation.

nicklockwood avatar Sep 29 '13 20:09 nicklockwood

Ran into this when trying to move an entire FXBlurView over top of a background (a drawer slide out). Would definitely be nice if FXBlurView supported being pushed around using [UIView animateWith...] blocks.

MobileVet avatar Oct 03 '13 18:10 MobileVet

I don't see any easy way to do this with good performance. You do a trick by generating the blurView for the whole superview area and then shifting it around inside a container when you animate (as in the modal example) but I don't see a good way to generalise this technique.

nicklockwood avatar Oct 04 '13 19:10 nicklockwood