Skip to main content
Home

Main navigation

  • Apps
  • Forum
  • Blog
    • Podcast
    • Guides
    • Hardware & Accessory Reviews
    • Bug Tracker
    • Developer Resources
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. App Development and Programming

How do I read the output of a swift playground in the latest version of Xcode?

By Skippy, 26 November, 2020

Forum
App Development and Programming

Hello,

For awhile now, I've wanted to learn swift, so I could create accessible versions of the games I played with my family, as a child.

I recently discovered the amazing, free tutorials offered by hackingwithswift.com, and downloaded the "unwrap" app, which allows you to read &/or watch the tutorials on-the-go.

I completed the very first section, which discusses variables.

However, I want to make sure that the code I entered is correct.

My problem is, that I cannot figure out how to read the output of my code, when using a playground.

Does anyone in this fantastic community have experience with this, that would be able to give me a hand?
I'm using xcode 12.2.

Thanks for any & all information you amazing, talented people can provide.

Options

  • Log in or register to post comments

Comments

Here is what you do...

By Greg Wocher

1 year 8 months ago

Hello,
When you are in the editor typing in your code, you press command plus shift plus return to run it. Once it runs you stop interacting with the editor. Once you stop interacting do a VO plus right arrow to move to something that should say playground sidebar group. Interact with this group and you should see something that says playground results and you need to interact with this. Once you do, you should be able to see your results. There also might be a few instances of the playground results depending on how many different code blocks got executed. If you want to see the result of just one line, use the command shift plus return at the end of the line of code you just wrote.

Thank you so much!

By Skippy

1 year 8 months ago

In reply to Here is what you do... by Greg Wocher

Hello,

Thank you so much!
That worked perfectly!

I love AppleVis, and am so thankful to be able to participate in this wonderful community!

More Like This

Making Swift Playgrounds accessible (Forum Topic)
Swift Playgrounds On The Mac (Forum Topic)
Playground Output (Forum Topic)
Learn to Code with Swift Playgrounds on iPad - Part 1 (Podcast)
Learn to Code with Swift Playgrounds on iPad - Part 3 (Podcast)
Learn to Code with Swift Playgrounds on iPad - Part 2 (Podcast)
Swift Playgrounds and Xcode groups for the blind community (Forum Topic)
Bug transfering files with iTunes 12.2 (Forum Topic)

Site Information

  • About
  • Club AppleVis
  • FAQ
  • Contact

Unless stated otherwise, all content is copyright AppleVis. All rights reserved. © 2022 | Accessibility | Terms | Privacy