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 @@ - +