Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playground is not showing result on right bar

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 = "💿" 
like image 657
Kishore Suthar Avatar asked Oct 06 '14 06:10

Kishore Suthar


People also ask

How do I access Xcode playground?

To open Playground on Xcode, navigate to File in the menu and click on New > Playground... To test our square function, we will choose the Blank template. Name your Playground file, then click on Create.

How do you find coding in Swift playground?

In the Swift Playgrounds app on your iPad, tap See All near the bottom right of the My Playgrounds screen. at the top left, then tap See All. Tap a playground or app or in the Learn to Code & Build Apps section to view a description.


1 Answers

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.

like image 155
Michael Dautermann Avatar answered Sep 25 '22 03:09

Michael Dautermann