6

I'm studying Swift and in the course I'm following on Udemy or even in videos found on the Internet when they use Playground, the code is executed automatically.

Is it possible to enable this feature even on the latest version?

Currently used version: 10.2.1

Cœur
  • 37,241
  • 25
  • 195
  • 267
Lorenzo97Ben
  • 85
  • 1
  • 9

2 Answers2

29

I believe you mean this: Click and hold the run button and select Automatically run.

enter image description here

Lirik
  • 3,167
  • 1
  • 30
  • 31
5

Try to check the play/stop button on the bottom of the editor and make sure it's set to Automatically Run.

Xcode Automatically Run

Bojan Dimovski
  • 1,216
  • 11
  • 25