Why the need for AppDelegate?

Hi! Started to learn swift with ios, can't understand why we need the appdelegate file.
Searched the net, there is no clear answer. Please tell me!
June 10th 19 at 15:08
1 answer
June 10th 19 at 15:10
Generally speaking it is a kind of entry point into your application. This class manages the state of your application. It also contains the main window of your application, that is the UIWindow. In this class configures all the basic needs of your application, whether it is Push Notifications or Voice Calls, and so on. I would say this is the Core of your application.

You can tell from his inheritance. UIResponder and UIApplicationDelegate
On the first:
An abstract interface for responding to and handling events.

The second:
A set of methods that are called by the singleton UIApplication object in response to important events in the lifetime of your app.

That is how I feel there is an important(core) things in your app.

But at the initial stage of the study it you almost do not need.
It turns out that it is necessary to inherit, or code it to drag? - Rasheed.Champl commented on June 10th 19 at 15:13
Straight in it. Or rather it is better to do Extensions for it. - alycia_Pfannerstill commented on June 10th 19 at 15:16
this is also possibly close the question - alycia_Pfannerstill commented on June 10th 19 at 15:19

Find more questions by tags SwiftiOS