I've reached out to Apple via a TSI about this particular issue. As of the current release of SwiftUI, this isn't possible. They recommend I use the .sheet modifier instead and drop the split window capability. Otherwise, I can create a UISceneDelegate and use UIKit APIs directly:
let options = UIWindowScene.ActivationRequestOptions()
options.preferredPresentationStyle = .prominent
let userActivity = NSUserActivity(activityType: SecondSceneDelegate.sceneUserActivityType)
userActivity.targetContentIdentifier = SecondSceneDelegate.sceneUserActivityType
UIApplication.shared.requestSceneSessionActivation(nil,
userActivity: userActivity,
options: options,
errorHandler: nil)
I do hope to see this improve in the future, though.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: