Standard AppDelegate.swift file template for Xcode 11.0+ for those who prefer the ol' reliable. ๐
From your terminal run:
sh installnewtemplate.sh
This command installs the template into your Xcode application where you'll be able to select it & use it in your projects rather than the newly AppDelegate.swift
file that leverages the SceneDelegate
.
This template allows you to have the standard AppDelegate.swift
boilerplate code from Xcode versions 10.3 & below.
- To use this file as your standard
AppDelegate.swift
file without theSceneDelegate
boilerplate do the following:- Delete the current
AppDelegate.swift
file in your project. ๐ซ - Also delete the
SceneDelegate.swift
file. ๐ - Go to your project's
Info.plist
file and delete theApplicationSceneManifest
key and its 2 items. ๐ฎ - Once you've deleted the
ApplicationManifestKey
from your project'sInfo.plist
, create a new file and select your brand new AppDelegate template file. ๐ - Name it
AppDelegate
in the File placeholder text within Save As which you'll be saving as your brand newAppDelegate.swift
file. ๐พ
- Delete the current