Be Developer
Published in

Be Developer

What is SceneDelegate on iOS 13

Photo by Roberto Nickson on Unsplash

Functions of the SceneDelegate class

The main function in the SceneDelegate class is:

New methods on the AppDelegate class

On the other hand, in the AppDelegate class there are two new methods related to the scenes, since now the new life cycle of the scenes sessions is managed by UIApplicationDelegate:

Modification in the Info.plist file

Together with these new delegates, Xcode creates a new entry (Application Scene Manifest) in the Info.plist file:

Info.plist settings
  • Enable Multiple Windows. If its value is TRUE, users can open multiple windows of an application (on iPadOS).
  • Scene Configuration. It contains the Application Session Role field, an array (so we could have multiple configurations), whose first item contains a name and a delegate for the scene.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Raúl Ferrer

First Chemist, now Mobile Tech Lead & Senior iOS Developer. Always learning. You have an idea, develop it and make it BIG. My web: https://raulferrer.dev