Tutorial by Examples

Create a new playground file: First option: From Xcode welcome screen, select the first option (Get started with a playground). Second option: From menu select File → New → Playground (⌥⇧⌘N). Name your playground and select the platform (iOS/macOS/tvOS), then click Next. ...
Using Playground it is easy to see that happens inside loops or objects while the change is happening. For example, in the code below, the value of x will change from 1 to 4. import UIKit for x in [1, 2, 3, 4] { x } (1) Clicking on the eye symbol on the right will give us a quick look. (2...
Images, static data, sounds, etc. are resources in a Playground. If the Project Navigator is hidden, choose View > Navigators > Show Project Navigator (⌘1) There are several ways to add files Drag your resources to the Resources folder or Select the Resources folder and choose File &gt...

Page 1 of 1