Swift Playground
  • nightly
  • nightly-main
  • nightly-6.0
  • nightly-5.10
  • nightly-5.9
  • nightly-5.8
  • nightly-5.7
  • nightly-5.6
  • nightly-5.5
  • nightly-5.4
  • nightly-5.3
  • Swift 6
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 6.0
  • Swift 5
  • 5.10.1
  • 5.10
  • 5.9.2
  • 5.9.1
  • 5.9
  • 5.8.1
  • 5.8
  • 5.7.3
  • 5.7.2
  • 5.7.1
  • 5.7
  • 5.6.3
  • 5.6.2
  • 5.6.1
  • 5.6
  • 5.5.3
  • 5.5.2
  • 5.5.1
  • 5.5
  • 5.4.3
  • 5.4.2
  • 5.4.1
  • 5.4
  • 5.3.3
  • 5.3.2
  • 5.3.1
  • 5.3
  • 5.2.5
  • 5.2.4
  • 5.2.3
  • 5.2.2
  • 5.2.1
  • 5.2
  • 5.1.5
  • 5.1.4
  • 5.1.3
  • 5.1.2
  • 5.1.1
  • 5.1
  • 5.0.3
  • 5.0.2
  • 5.0.1
  • 5.0
  • Swift 4
  • 4.2.4
  • 4.2.3
  • 4.2.2
  • 4.2.1
  • 4.2
  • 4.1.3
  • 4.1.2
  • 4.1.1
  • 4.1
  • 4.0.3
  • 4.0.2
  • 4.0
  • Swift 3
  • 3.1.1
  • 3.1
  • 3.0.2
  • 3.0.1
  • 3.0
  • Swift 2
  • 2.2.1
  • 2.2
System Status
Feedback
Source Code
Creator
Donate
Settings
Help
Import
There are a few different ways to import code into Playground:
  • Drop a file onto the editor
  • Append a GitHub gist ID to the URL
    (e.g. swiftfiddle.com/<gist_id_goes_here>)
  • Or just start typing!
Keyboard Shortcuts
MacWindows/LinuxAction
Cmd + EnterCtrl + EnterRun code
Cmd + SCtrl + SShare code
Installed Libraries
RepositoryPackageVersion
swift-algorithmsimport Algorithms1.2.1
swift-atomicsimport Atomics1.2.0
swift-collectionsimport Collections1.1.4
swift-cryptoimport Crypto3.12.3
swift-numericsimport Numerics1.0.3
swift-systemimport SystemPackage1.4.2
Feedback / Bug Report
github.com/swiftfiddle/swiftfiddle-web