The playground was originally not supported, but github has a library KZPlayground that allows the playground to support oc
Reference link:
Does the playground in Xcode only support swift? Does it work with oc?
Reference link:
Does the playground in Xcode only support swift? Does it work with oc?