call API in playground
go to file: go to new : goto playground: //: Playground - noun: a place where people can play import XCPlayground import UIKit XCPSetExecutionShouldContinueIndefinitely (continueIndefinitely: true ) var str = "Hello, playground" func hello() { print ( "Hello, World" ) } hello () class Location: NSObject { var id: String var name: String init (id : String , name: String ){ self . id = id self . name = name } } var fetchedLocation = [ Location ]() // var myArray: NSArray! = [] var cart: [[ String : Any ]] = [] var arrobj: [[ String : Any ]] = [] func location(){ let par: Strin...