Swift Playgrounds Makes Learning to Code Fun

3 months ago
Swift Playgrounds Makes Learning to Code Fun Image

Apple introduced Swift Playgrounds, an app designed to teach the Swift programming language, at WWDC 2016. We’ve had a chance to experiment with it since then, and can say without reservation that their first foray into teaching kids how to code deserves top marks. They have enabled learning to code to be fun and addictive, even for those who aren’t the “coding type.”
The app feels like a puzzle-solving game, reeling you into the challenge while introducing coding concepts and building skills step-by-step. After completing a challenge and receiving encouraging praise from the app, we found we were motivated and eager to move on to the next one. One tester expected to finish two or three challenges to get a feel for the app, but ended up finishing over fifteen lessons because she was so engaged with it. The pace, lesson structure, and challenges all prove to be well-designed from an instructional standpoint. This app will likely teach many future programmers how to code.

Swift Playgrounds: Learn to Code 1

Swift Playgrounds contains two learning paths. Learn to Code 1: Fundamentals of Swift is the only path available now, while Learn to Code 2: Beyond the Basics will be available soon. More are expected both from Apple and third parties in the future. Learn to Code 1 is divided into twelve chapters, each with six to ten lessons. (The number of lessons alone is impressive!)
Each chapter starts with a few screens to introduce the topic and relate it to something in the real world. For example, the app compares coding a “while” loop to hammering a nail. “While you’re hammering a nail, you can’t just hit it a certain number of times and expect it to go all the way in. Instead, you continue hitting the nail while the nail is still sticking out.” “For” loops are introduced as “repeating yourself” like when you’re planting seeds in a garden…make a hole, place the seed, move 5 inches forward. These brief explanations before getting into the semantics of the code help to get your mind in the right place before diving in.
After the introduction, you jump into the “playground” part. You’re presented with an area to write code on the left of the screen and a character named Byte on the right. Your code instructs Byte to move around his world, collect gems, and toggle switches on and off. Byte’s world is nicely designed with engaging colors and allows you to swipe to spin it around or pinch to zoom in for different views.
Some code is pre-populated and you easily add to it by typing or tapping commands in the tray below. Adding code in this way instead of straight typing is efficient. As Apple states, “With QuickType for code, the Shortcut Bar intelligently displays commands as you go, so you can write a line of code with a tap or two. And for those moments when typing is the best option, there’s an innovative keyboard designed just for coding. Touch a key to access multiple characters, then drag to choose the one you want.”
Swift Playgrounds Screen Shot
Each lesson provides either a goal or a challenge to complete that involves moving Byte around and collecting gems in an efficient way. The app encourages you when you get it right and motivates you to keep moving on to the next level, like every good puzzle game should. Hints are provided for each topic, and the general Help menu is actually helpful. If you do get stuck, you are able to move on to the next lesson if you want, without completing a challenge.

Swift Playgrounds: A Few Challenges

Those who are not visual-spatial learners might find Learn to Code 1 in Swift Playgrounds a bit more challenging. To solve a puzzle, you need to determine where Byte was, where he needs to go, and how to get there. This task involves moving his habitat around and counting squares to determine his location. This isn’t as easy to visualize for some, but needed to figure out his space. Apple offers a few other challenges in Swift Playgrounds outside of Byte’s world, that are not visual-spatial: Drawing Sounds and Blink. They require a more advanced grasp of the coding concepts, but we imagine tackling these challenges will enable those with limited visual-spatial competence to focus more on the code.
Another challenge that we came across was getting “lost” in the code. As Byte performed the actions on the right of the screen, we wished the line of code on the left would highlight as he performed it. For “while” loops and “for” loops especially, we sometimes lost track of where Byte was in the code. An indicator would be helpful.

Overall Impression of Swift Playgrounds

Apple designed the Swift language to be easy to use and as an improvement to Objective-C, its primary programming language before Swift. We believe it to be a definite improvement over Objective-C, and our developers use it almost exclusively to develop for iOS, macOS, tvOS, and watchOS apps for our clients. Swift Playgrounds was designed to be an engaging way to teach the Swift language, and we think Apple succeeded there too.
The number of lessons available, the way each builds on the last, the appealing interface, and deserved praise when you complete a goal successfully make it an engaging and fun way to learn. Further, the code you develop in your playground can be exported and shared for use in real apps, outside of the Playgrounds environment. Compared to the dry programming books we’ve read in the past, Swift Playgrounds is a far superior method of instruction.
Swift Playgrounds is a free iPad app, currently available only when running the public beta of iOS 10, but will be available publicly when iOS 10 launches in the fall.
If you like hearing about new products like this, consider subscribing to our InspiringApps newsletter. Once a month we’ll send you the latest on mobile trends, technologies, and innovations.

Build a product that will delight your users & help your business thrive

We partner with inspired companies to create digital products that delight our clients’ customers and improve business outcomes. We work with our clients to bring their ideas and dreams to fruition. And, our development process is guaranteed to get you to the finish line.
Recent Posts

Digital Products

Top 5 iOS 18 Features That Will Transform Your Digital Product Experience

As we gear up for the exciting release of iOS 18, it’s time to explore how this update will redefine your digital product experience. At InspiringApps, we’re always at the forefront of mobile technology and thrilled to share our insights on the game-changing features coming your way. 1. Powerful New Design Controls & Flexible Animations iOS 18 introduces a suite of new design controls and flexible animations that will make your app look and feel more dynamic than ever. Imagine customized gradient backgrounds that shift subtly as you navigate, rotating symbols that guide your attention, and animated toggles that make even the simplest interactions a joy. These enhancements aren’t just about aesthetics—they’re about creating an intuitive, responsive experience that keeps users engaged and delighted. 2. Enhanced iPad Offerings iOS 18 brings two major enhancements that will make your app shine on the bigger screen: Adaptable Tab Bar: Users can now seamlessly switch between a traditional tab bar and a sidebar view, optimizing on-demand screen real estate. Split View Navigation: Your perfectly crafted iPhone navigation now automatically adapts to iPad’s native left sidebar plus detail view panes, providing a consistent yet optimized experience across devices. 3. New App Icon Configurability First impressions matter, and your app icon is often the first thing users see. iOS 18 introduces support for dark mode app icons and goes a step further with “tinted” icons. This new feature allows users to customize their home screen experience, ensuring your app always looks its best, regardless of the user’s theme preferences. 4. Multi-Platform Development Support iOS 18 enhances code-sharing capabilities between iOS, macOS, watchOS, and tvOS. This opens up exciting possibilities for extending your app’s reach across the Apple ecosystem. It’s time to consider how your app could benefit from a presence on Apple Watch or Apple TV! 5. Spotlight, Live Activities, & Siri Integration While not entirely new, these features are also worth exploring: Spotlight Integration: Allow iOS to highlight and directly link to your app when users search their device. Live Activities: Engage users with real-time updates on their Lock Screen and in the Dynamic Island. Siri Integration: Enable users to interact with your app through voice commands, enhancing accessibility and convenience. At InspiringApps, we’re excited to help you tap into these new features to create more engaging, user-friendly, and innovative apps. Whether you’re looking to update an existing digital product or create something entirely new, we’re here to guide you through the process and ensure your digital product stands out in the iOS 18 era.

2 months ago

Mobile Industry

5 Colorado Nonprofits Using Mobile Apps To Further Causes

Our world as we know it is constantly bombarded with stimuli. It’s difficult to discern the meaningful from the mundane. With so many apps on the market, we took a closer look to find you the best Colorado nonprofit initiatives. These apps highlight innovative social change merging with evolving technology trends. At InspiringApps, we’re deeply committed to making a difference. It’s not simply a concept. Inspiration is infused in every app we create, in every interaction we encounter, and through the causes we’re committed to: Environmental Justice & Sustainability Science, Technology, Engineering, & Math (STEM) Diversity & Inclusion Mental Health Support for First Responders & Frontline Workers Health & Wellness Education Our company was founded in 2007 in the foothills of Boulder, Colorado—where our passion for developing apps has evolved, and our commitment to inspiring our clients is our ongoing inspiration. This article will share our five favorite Colorado nonprofits making big waves in the nonprofit sector. Apps for Environmental Change 1. Take-a-Hike App Being intentional about how you interact with the environment can make all the difference in your local community. Take-a-Hike app is an audio-guided hiking app that guides you through nature trails in Boulder, Colorado. Not only does Take-a-Hike guide you through tumultuous hiking terrain, but this mobile app also gives you guidance on preserving and supporting the wetlands, forests, and mountains while enjoying the beauty of Colorado’s outdoors.  InspiringApps is honored to partner with the Boulder Watershed Collective and aid in their vital cause of watershed restoration.  You can download Take-a-Hike on the App Store and on Google Play. 2. Eco-Cycle App Technology that fosters sustainability makes for a cleaner, healthier planet. Boulder County has released an app to help educate the community about which materials can be recycled. The app helps identify whether an item is recyclable, compostable, or reusable and where to deposit the item. You can download the Eco-Cycle app on the App Store and on Google Play. Apps for First Responders & Front-Line Workers  3. ThoughtFarmer Access to knowledge and resources empowers and unites employees. Frontline workers are the backbone of modern civilization, and yet, they often lack educational resources and remain uninformed about important company news. According to Tribe, 83% of frontline workers don’t have an email address. Roaring Fork Transportation Authority (RFTA), a public transit agency in Roaring Fork Valley, Colorado, found an innovative solution to equip and empower their workers: ThoughtFarmer. ThoughtFarmer is an app that provides RFTA with an intranet to engage employees and equip them with invaluable resources for their job. You can download ThoughtFarmer on the App Store and on Google Play. 4. Smart911 Plan ahead so that the police and first responders can get to you quickly in an emergency. Smart911 helps you do just that—plan smart. You can create a free safety profile for your household to give the police important information you want 911 and first responders to have in the case of an emergency.  Boulder County created this initiative to provide emergency responders with vital information so that they can help you in the best way possible.  From mental health considerations to an aggressive pet, Smart911 allows you to save time and be proactive about your safety. You can download the free Smart911 on the App Store and on Google Play. Apps for Humanitarian Aid  5. FlexRide App The amount of pain and loss the Colorado fires have inflicted is unparalleled. The FlexRide app brings assistance to those who need it most.   Wildfires have wreaked havoc across Colorado. In 2021, many locals lost their homes to the fires. The Regional Transportation District (RTD) provided rides free of charge to any Marshall Fire victims, which can be accessed through the FlexRide app. FlexRide is a curb-to-curb service for Broomfield residents and visitors. FlexRide helps transport you throughout the neighborhood or connect you with other RTD transportation services. You can download the FlexRide app on the App Store and on Google Play. Concluding Thoughts There you have it; those are our top picks for Colorado nonprofit innovation and inspiration. We hope you enjoyed diving into the ever-so-evolving world of nonprofit + technology. Our team constantly evaluates the latest apps and trends to uncover the best ones.  Going mobile takes a nonprofit’s mission and makes it accessible to all. At InspiringApps, we craft inspiring custom software solutions that impact our clients, communities, and businesses.

2 years ago

Blog Categories
App Marketing
Business & Strategy
Client Projects
Culture & Innovation
Custom Solutions
Digital Product Design
Digital Product Development
Digital Products
Events
InspiringApps News
Mobile Industry
Webinars