From db0f7329e42542b3754faa68c22440ac0f30bc64 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Tue, 16 Apr 2019 22:11:09 -0700 Subject: [PATCH] Comment out playground code that is failing in Xcode 10.2 --- .../Pages/Usage.xcplaygroundpage/Contents.swift | 4 ++++ JSONAPI.playground/contents.xcplayground | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/JSONAPI.playground/Pages/Usage.xcplaygroundpage/Contents.swift b/JSONAPI.playground/Pages/Usage.xcplaygroundpage/Contents.swift index 25b0235..cdd90fe 100644 --- a/JSONAPI.playground/Pages/Usage.xcplaygroundpage/Contents.swift +++ b/JSONAPI.playground/Pages/Usage.xcplaygroundpage/Contents.swift @@ -49,11 +49,15 @@ print("-----") // MARK: - Pass successfully parsed body to other parts of the code +/* + ---- CRASHING IN XCODE 10.2 PLAYGROUND ---- + if case let .data(bodyData) = peopleResponse.body { print("first person's name: \(bodyData.primary.values[0][\.fullName])") } else { print("no body data") } + */ // MARK: - Work in the abstract diff --git a/JSONAPI.playground/contents.xcplayground b/JSONAPI.playground/contents.xcplayground index e240eff..3da156e 100644 --- a/JSONAPI.playground/contents.xcplayground +++ b/JSONAPI.playground/contents.xcplayground @@ -1,5 +1,5 @@ - +