FXBlurView
FXBlurView copied to clipboard
FXBlurView blocks MainThread
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; }
This issue also happened when I used a scrollView and the ScrollView delegate methods!
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.