Xcode iOS UIToolbar not sending IBActions after update to use SceneDelegate
13:46 18 Jul 2026

I added the new SceneDelegate and my toolbar clicks no longer make it through the IBActions. I even recreated the IBActions and verified the safe area (which I did not change). All other GUI actions work fine. The Toolbar item Outlets work fine too, as a couple of buttons are UIImages I set in the code. I tried all the usual things suggested. The buttons behave visually as if pressed, just nothing happens in my main UIViewController.

My SceneDelegate.swift has the following (and only this), and I verified it does get called:

   func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions)
    {
        guard let windowScene = (scene as? UIWindowScene) else { return }
        
        // Create the window
        let window = UIWindow(windowScene: windowScene)
        
        // 1. Instantiate the storyboard
        let storyboard = UIStoryboard(name: "Main", bundle: nil)
        
        // 2. Instantiate your Initial View Controller using its Storyboard ID
        let rootViewController = storyboard.instantiateViewController(withIdentifier: "Main")
        
        // 3. Set the root view controller
        window.rootViewController = rootViewController
        self.window = window
        window.makeKeyAndVisible()
    }

I did not make any changes to my AppDelegate.

Any thoughts?

ios swift xcode