Following are the common execution states for a Swift iOS Application :
Not Running : In this state, the application is not launched, or the code is terminated by the system, and it will shut down the whole application.
Inactive : It is the transactional state of the lifecycle where the application is running in the background, but it is not able to initiate events.
Active : It is the main execution state in the programming where the application is running in the background and able to initiate the event.
Background : In this phase, the application is running in the background, and it is still able to execute the code.
Suspended : This state defines that our application is running at the background state, and the system suspends this application, and the application is not able to execute any code.