Quick action items - Core Data query & how to navigate

I'm trying to move an app over to swiftui and have run into a couple of issues involving quick actions.

I'm trying to get the app to respond to the action.

I have a CustomSceneDelegate setup, which is receiving the actions.

How do I get it to navigate to a view when the addProject is used, and how do I get a core data query in the addTime?

class CustomSceneDelegate: UIResponder, UIWindowSceneDelegate {
    
    func windowScene(_ windowScene: UIWindowScene, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
        handleShortcutItem(shortcutItem)
    }
    
    func handleShortcutItem(_ shortcutItem: UIApplicationShortcutItem) {
        if shortcutItem.type == "addProject" {
            print("Phase: Add Project")
        } else if shortcutItem.type == "addTime" {
            print("Phase: Add Time")
        }
    }
}
Quick action items - Core Data query & how to navigate
 
 
Q