Playground is not showing result on right bar

Kishore Suthar picture Kishore Suthar · Oct 6, 2014 · Viewed 37.7k times · Source

I waited long time but my playground project is not showing result on right side bar I am using right code but still right bar is not updating i don't know what is the problem i tried lot of time. here is my code

var str = "Hello, playground"

var str1 = "this is my first program"

let kermit = "kermit"
let msPiggy = "ms. piggy"

let string1 =  msPiggy + " and " + kermit + ", sitting in a tree"
let string2 = "\(msPiggy) and \(kermit), sittting in a tree "

let string3 = " kermit has \(5*2) fingers"

let  chr1:Character = "💿"

Answer

Michael Dautermann picture Michael Dautermann · Oct 6, 2014

As of Xcode 8, unless you are print-ing out things, results in the playground could take a little bit more work to show.

In this screenshot, I show two things you can click on. #1 is the the "Show Debug Area" button, the middle button in the top right of the toolbar (i.e. which toggles the lower pane that slides up and down in the Xcode window). Results from print end up there.

the guys script

Also, the second set of (multiple) circles shows that you can click on to show results. You can slide the gray bar space wider to make things show.

Lastly, where you see the "Play" triangle in the lower toolbar, try clicking on that to force the Playground to execute your code again.