diff --git a/Tusker/Screens/Utilities/Previewing.swift b/Tusker/Screens/Utilities/Previewing.swift index cc76889f..7a991ee6 100644 --- a/Tusker/Screens/Utilities/Previewing.swift +++ b/Tusker/Screens/Utilities/Previewing.swift @@ -362,11 +362,15 @@ extension MenuActionProvider { let options = UIWindowScene.ActivationRequestOptions() options.preferredPresentationStyle = .automatic actions.append(UIWindowScene.ActivationAction { (_) in - return .init(userActivity: activity(), options: options, preview: nil) + let activity = activity() + activity.displaysAuxiliaryScene = true + return .init(userActivity: activity, options: options, preview: nil) }) } else if UIApplication.shared.supportsMultipleScenes { actions.append(createAction(identifier: "new_window", title: "Open in New Window", systemImageName: "rectangle.badge.plus", handler: { (_) in - UIApplication.shared.requestSceneSessionActivation(nil, userActivity: activity(), options: nil, errorHandler: nil) + let activity = activity() + activity.displaysAuxiliaryScene = true + UIApplication.shared.requestSceneSessionActivation(nil, userActivity: activity, options: nil, errorHandler: nil) })) } }