isRunning
A Boolean value indicating whether the main event loop is running.
Declaration
var isRunning: Bool { get }Discussion
The value of this property is true when the main event loop is running or false when it’s not. Calling the stop(_:) method sets the value to false.