Posts

Learn to Code with Swift Playgrounds

You can install Swift Playgrounds on an iPad or a Mac computer. It is a free app by Apple and a fun way to learn to program. You will find "Swift Playgrounds" in the "App Store". You can also install Swift Playgrounds from this link:  https://developer.apple.com/swift-playgrounds/ . Download a Playground Open the Swift Playgrounds application. Your "My Playgrounds" section will be empty until you download swift playgrounds to your device. You can select a swift playground to download under "More Playgrounds". There are many swift playgrounds to choose from and you can even create your own. If you are new to programming, I recommend starting with the following playgrounds: Learn to Code 1 This is a good playground to start your journey to learn programming. It is a fun little puzzle game that teaches you the basics of programming by navigating a robot through different levels. You will learn about functions, for loops, conditional code, logical op...

Introduction to Swift

Swift is a programming language introduced by Apple in June of 2014 at the Worldwide Developers Conference (WWDC) which took place in San Francisco. Swift was initially Apple's proprietary language, but on December 3rd, 2015, it was made open-source under the Apache License 2.0. To use Swift for iPhone app development, you need Xcode 6 or higher. As of writing this post, the latest stable version of Xcode is 15 which was released in 2023. You can also use Swift as a general purpose programming language outside of iPhone app development. There are many ways to get started with Swift. The website  swift.org  contains all the documentation about Swift as well as guides and examples to get you started. Apple's Swift Playgrounds is a great resource, especially if you are new to programming, that runs on your Mac or iPad. You can also run Swift programs in the command line which is what I will demonstrate.  Create Your First Swift Program Install Swift The easiest way to ...