Tag: Playground

  • XCode Playground Overview

    Playground is an interactive work environment that allows you to see the values in the sidebar for the written code. As and when you make changes to your code the sidebar reflects the changed result. Listed below are some examples written using Swift language in Playground Sum of n numbers [code language=”swift”]var sum = 0…

  • No such module Cocoa

    No such module Cocoa error message is displayed when the type of playground file selected is iOS instead of OS X. Make sure to select Playground under OS X if you want to use Cocoa framework and go for UIKit incase of iOS Another alternate way is to change the template using the Playground Settings.…