Przeglądaj źródła

Updated the playground to compile against the new response serializers.

Christian Noon 10 lat temu
rodzic
commit
efc5c51fc8
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      Alamofire.playground/section-1.swift

+ 2 - 4
Alamofire.playground/section-1.swift

@@ -6,8 +6,6 @@ import XCPlayground
 XCPSetExecutionShouldContinueIndefinitely()
 
 Alamofire.request(.GET, "https://httpbin.org/get", parameters: ["foo": "bar"])
-    .responseString { request, response, result in
-        print(request)
-        print(response)
-        debugPrint(result)
+    .responseJSON { response in
+        debugPrint(response)
     }