I have to get football game schedule via JSON and extract date of each game of one of the specific universities.
I tried:
let url = NSURL(string: \"S
In order to use asynchronous operations in an Xcode Playground, you need to set needsIndefiniteExecution
to true
.
Add this at the top of your code:
Swift 2
import XCPlayground
XCPlaygroundPage.currentPage.needsIndefiniteExecution = true
Swift 3
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true