---
title: PlaygroundPage.ExecutionMode
framework: playgroundsupport
role: symbol
role_heading: Enumeration
path: playgroundsupport/playgroundpage/executionmode
---

# PlaygroundPage.ExecutionMode

The available speeds for executing the code on a playground page.

## Declaration

```swift
enum PlaygroundPage.ExecutionMode
```

## Overview

Overview The PlaygroundPage.ExecutionMode.run, PlaygroundPage.ExecutionMode.runFaster, and PlaygroundPage.ExecutionMode.runFastest modes all execute code immediately. The PlaygroundPage.ExecutionMode.step and PlaygroundPage.ExecutionMode.stepSlowly modes execute  code statement by statement, highlighting each statement on the page as it's executed. For faster execution, explicitly support the PlaygroundPage.ExecutionMode.runFaster and PlaygroundPage.ExecutionMode.runFastest modes in your live view code. These modes signal to you that the learner wants the live view to show progress faster than the normal speed. These execution options aren't displayed to the learner unless you opt in by adding the MaximumSupportedExecutionSpeed key to a page's manifest property list. Set the key to Faster or Fastest, depending on how many speeds your live view supports.

## Topics

### Controlling Execution Speed

- [PlaygroundPage.ExecutionMode.run](playgroundsupport/playgroundpage/executionmode/run.md)
- [PlaygroundPage.ExecutionMode.runFaster](playgroundsupport/playgroundpage/executionmode/runfaster.md)
- [PlaygroundPage.ExecutionMode.runFastest](playgroundsupport/playgroundpage/executionmode/runfastest.md)

### Stepping Through Code

- [PlaygroundPage.ExecutionMode.step](playgroundsupport/playgroundpage/executionmode/step.md)
- [PlaygroundPage.ExecutionMode.stepSlowly](playgroundsupport/playgroundpage/executionmode/stepslowly.md)

### Comparing Modes

- [!=(_:_:)](playgroundsupport/playgroundpage/executionmode/3029554.md)

## See Also

### Configuring Execution

- [executionMode](playgroundsupport/playgroundpage/3029561-executionmode.md)
- [needsIndefiniteExecution](playgroundsupport/playgroundpage/1964501-needsindefiniteexecution.md)
- [finishExecution()](playgroundsupport/playgroundpage/1964505-finishexecution.md)
