marmelroy / PeekPop

Peek and Pop with backwards-compatibility
MIT License
1.95k stars 123 forks source link

Consider using UIVisualEffectView with UIBlurEffect #11

Closed hansstefan closed 8 years ago

hansstefan commented 8 years ago

Currently producing blur screenshots takes about 0.20 second on iphone 5s, and this time is added every time the peekPopPossible method is invoked. Using UIVisualEffectView takes no time to generate, which makes the peekPop gesture much faster.

A plus is that all animations in the background are still visible (and blurred). The downside is that you cannot control blur radius, but this is only a visual downside.

marmelroy commented 8 years ago

Thanks @hansstefan. It is something I considered when creating PeekPop. The main downside is that a UIVisualEffectView can't be applied progressively in iOS8 (an essential part of the Peek/Pop interaction).