Skip to main content
AppleVis

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 KE8UPE, 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

2 years 10 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 KE8UPE

2 years 10 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

Apple Releases macOS 10.14.4, tvOS 12.2, and New 12.2 Software for the HomePod (Blog Post)
Bug transfering files with iTunes 12.2 (Forum Topic)
iTunes 12.2 and Radio (Forum Topic)
Apple Releases iOS 12.2; Bringing Apple News to Canada and Four New Animoji (Blog Post)
Issues with connecting the Focus 14 Braille Display to my phone with iOS 12.2 and over. (Forum Topic)
Apple Music with Monterey 12.2 (Forum Topic)
Swift Playgrounds (Forum Topic)
OverCast Issue in iOS 12.2 (Forum Topic)

Site Information

  • About
  • Club AppleVis
  • FAQ
  • Contact

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