Post

Replies

Boosts

Views

Activity

Reply to ScreenBlur is not happening always when app goes to app switcher.
Hi @DTS Engineer, can you please clarify these doubts: We are using appdelegates in our code, is it possible that scenedelegate works faster and are more consistent? The same issue can be seen with phonepe app. We have compared with hdfc, imobile apps which are working fine always. Can we tag this inconsistent screen blur issue to appdelegate/scenedelegate performance?? I have tried with UIView, UIImageView, UIVisualEffectView, UIWindow but the issue exists.
Topic: UI Frameworks SubTopic: UIKit
May ’25
Reply to ScreenBlur is not happening always when app goes to app switcher.
@darkpaw @DTS Engineer - (void)applicationWillResignActive:(UIApplication *)application { if (!_coverView) { _coverView = [[UIView alloc] initWithFrame:self.window.bounds]; _coverView.backgroundColor = [UIColor blackColor]; _coverView.userInteractionEnabled = NO; [self.window addSubview:_coverView]; [self.window bringSubviewToFront:_coverView]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss.SSS"]; NSString *timeString = [formatter stringFromDate:[NSDate date]]; NSLog(@"[%@] [AppDelegate] Cover view added immediately", timeString); } } - (void)applicationDidBecomeActive:(UIApplication *)application { if (_coverView) { [_coverView removeFromSuperview]; _coverView = nil; NSLog(@"[AppDelegate] Cover view removed"); } } This is the code that we have used and the logs are Idletimer canceled ... [2025-05-20 17:02:06.518] [AppDelegate] Cover view added immediately [AppDelegate] Cover view removed Idletimer canceled ... [2025-05-20 17:02:13.976] [AppDelegate] Cover view added immediately [AppDelegate] Cover view removed Idletimer canceled ... [2025-05-20 17:02:17.442] [AppDelegate] Cover view added immediately [AppDelegate] Cover view removed Idletimer canceled ... [2025-05-20 17:02:20.217] [AppDelegate] Cover view added immediately [AppDelegate] Cover view removed Idletimer canceled ... [2025-05-20 17:02:23.017] [AppDelegate] Cover view added immediately [AppDelegate] Cover view removed Idletimer canceled ... [2025-05-20 17:02:25.304] [AppDelegate] Cover view added immediately [AppDelegate] Cover view removed Idletimer canceled ... [2025-05-20 17:02:27.719] [AppDelegate] Cover view added immediately [AppDelegate] Cover view removed Even when the screenblur is not happening we see this log "[AppDelegate] Cover view added immediately"
Topic: UI Frameworks SubTopic: UIKit
May ’25
Reply to ScreenBlur is not happening always when app goes to app switcher.
we have put logs at the entry of applicationWillResignActive and also at the exit of the code. Those logs are always getting , but the blur code in between the logs is not working. We have a doubt that applicationWillResignActive is called but the UI part is not being executed or is dismissed by OS for other priority activities. Is this is expected behaviour or are we missing anything here?
Topic: UI Frameworks SubTopic: UIKit
May ’25
Reply to ScreenBlur is not happening always when app goes to app switcher.
@DTS Engineer @darkpaw Here is the sample code // Add the view to window -(void)applicationWillResignActive:(UIApplication *)application { _coverView = [[UIView alloc]initWithFrame:[self.window frame]]; _coverView.backgroundColor =[UIColor blackColor]; [self.window addSubview:_coverView]; window.bringSubviewToFront(blurView); } // Remove the view to window - (void)applicationDidBecomeActive:(UIApplication *)application { if(_coverView != nil) { [_coverView removeFromSuperview]; _coverView = nil; } } And the issue is not seen in sample application. The issue is intermittent in my main application that too only after logging into the application.
Topic: UI Frameworks SubTopic: UIKit
May ’25