You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SFSDKCoreLogger d:[selfclass] format:@"Scene %@ is entering foreground.", sceneId];
601
602
602
-
@try {
603
-
[selfdismissSnapshot:scene completion:nil];
604
-
}
605
-
@catch (NSException *exception) {
606
-
[SFSDKCoreLogger w:[selfclass] format:@"Exception thrown while removing security snapshot view for scene %@: '%@'. Will continue to resume scene.", sceneId, [exception reason]];
607
-
}
603
+
// Using this to dismiss snapshot for screen mirroring
604
+
if (scene.session.role == UIWindowSceneSessionRoleExternalDisplayNonInteractive) {
605
+
@try {
606
+
[selfdismissSnapshot:scene completion:nil];
607
+
}
608
+
609
+
@catch (NSException *exception) {
610
+
[SFSDKCoreLogger w:[selfclass] format:@"Exception thrown while removing security snapshot view for scene %@: '%@'. Will continue to resume scene.", sceneId, [exception reason]];
[SFSDKCoreLogger d:[selfclass] format:@"Scene %@ is resuming active state.", sceneId];
619
+
620
+
@try {
621
+
[selfdismissSnapshot:scene completion:nil];
622
+
}
623
+
@catch (NSException *exception) {
624
+
[SFSDKCoreLogger w:[selfclass] format:@"Exception thrown while removing security snapshot view for scene %@: '%@'. Will continue to resume scene.", sceneId, [exception reason]];
XCTAssertEqual(defaultViewControllerOnPresentation, defaultViewControllerOnDismissal, @"Default snapshot view controller on dismissal is different than the one provided on presentation!");
0 commit comments