Okay, so it looks like Swift Playgrounds apparently compiles differently from Xcode so it wouldn't compile because of a style "error" (left a bracket on the same line as some other code) despite still compiling on Xcode. Moving it to a new line seems to have fixed my issue.
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags: