FXBlurView icon indicating copy to clipboard operation
FXBlurView copied to clipboard

FXBlurView blocks MainThread

Open mathiasAichinger opened this issue 10 years ago • 2 comments

Hi! I used the FXBlurView in different ViewController which are embedded in a PageViewController. I disabled dynamic during swiping to avoid a strange crash. And now if I swipe very fast between the VCs the app gets in a freezed state and I have to reset the app!

Does anyone have an idea? It looks like updateAsynchronously never stops!

  • (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; self.blurView.dynamic = YES; }
  • (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; self.blurView.dynamic = NO; }

mathiasAichinger avatar Oct 23 '13 10:10 mathiasAichinger

This issue also happened when I used a scrollView and the ScrollView delegate methods!

mathiasAichinger avatar Apr 02 '14 07:04 mathiasAichinger

Try using the global [FXBlurView setBlurEnabled:] methods to disable the blur during animation, rather than toggling the dynamic property.

When using scrollView delegate methods to update the blur view, make sure you use the async option.

nicklockwood avatar Apr 02 '14 08:04 nicklockwood