Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Basics (retired) Variables and Constants Variables

when typing code in i.e a line would read var smr : String = "Good Bye" it does not show the value on the right

i type var smr : String = "Good Bye" no errors in code but get no result on the right side of Xcode where it should display "Good Bye"

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Brad,

Just to double check, have you ensured you have the standard editor open which is a grey panel that sits on the right hand side of the playground window? If you're unsure about how to open it you can click View > Standard Editor > Show Standard Editor as seen in the below image.

Playground standard editor

If you've checked that and it's all good try opening the Assistant Editor which you can do from the same View menu under Assistant Editor > Show Assistant Editor, if after all that you still don't see any values coming up try creating a new playground as in the past with earlier releases it had some minor issues.

Aside from that I can't think of any other reason why you wouldn't be seeing a value appear.

Let me know how you go.

ok thank you i had tried showing the assistant editor to with no luck it worked after fully closing xcode and going back in thank you