Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.66 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.66 KB

AppDelegateTemplate Screen Shot 2020-02-05 at 4 08 37 PM

Standard AppDelegate.swift file template for Xcode 11.0+ for those who prefer the ol' reliable. 😎

Installation:

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.

Screen Shot 2020-02-05 at 3 47 06 PM

Usage :

  • To use this file as your standard AppDelegate.swift file without the SceneDelegate 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 the ApplicationSceneManifestkey and its 2 items. 🚮
    • Once you've deleted the ApplicationManifestKey from your project's Info.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 new AppDelegate.swift file. 💾

Screen Shot 2020-02-05 at 4 03 50 PM