Diploma in Apple Development 🍎👩🏻💻: Coding 1: Lecture 2: Introduction to Swift, Constants, Variables and Operators, Swift REPL, Xcode, Xcode playgrounds and SwiftUI
Back to slide index.
👋🏻 Hi!
First, don't forget to confirm your attendance using the Seats Mobile app!
Second, I'm going to start every lecture with a meditation from the fantastic
Sitting Still Like a Frog book, all read by Myla Kabat-Zinn. If you don't want to participate that's completely fine.
Don't forget you have a tour of the library with Benelia at 1400 this afternoon! Do you all know where the library is?
Another Keynote from Develop in Swift Fundamentals, "Constants, Variables and Data Types". What does the
Swift Book say about
Constants, Variables and Data Types? By the way, whenever I'm writing Swift, I find it REALLY useful to have
A Swift Tour open in a browser window. I recommend you do the same.
One more Develop in Swift Fundamentals Keynote, "Operators". What does the
Swift Book say about
Operators?
Every year, Apple hosts a
World Wide Developers Conference aka WWDC aka Dub Dub. It's the place where Apple debuts new technology that you (their developers) can use to make new software. Most sessions from WWDC are archived at:
https://developer.apple.com/videos/. As well as
Pathways and the
Develop in Swift curriculum we will be making extensive use of them over the next academic year. They are a really well produced free resource that you'll be able to reference this year and onwards in your developer career.
An important thing to remember is that Apple is always revising its code, meaning that often videos and other content can become out of date. This is another of the joys of becoming a programmer - life long learning!
Let's start our WWDC video exploration with:
"Join us on a tour of SwiftUI, Apple's declarative user interface framework. Learn essential concepts for building apps in SwiftUI, like views, state variables, and layout. Discover the breadth of APIs for building fully featured experiences and crafting unique custom components. Whether you're brand new to SwiftUI or an experienced developer, you'll learn how to take advantage of what SwiftUI has to offer when building great apps."
I'm going to pause the video often to demonstrate what the presenter is doing. I'd like you to follow along too - do you all have Xcode installed? Do you have the visionOS simulator installed? Let's make sure everyone does before we start the video.
Don't forget you have a tour of the library with Benelia at 1400 this afternoon! Do you all know where the library is?
Homework:
- Review today's content.
- Complete the three playgrounds from today's lectures from Develop in Swift Fundamentals: Lab - Introduction.playground, Lab - Constants and Variables.playground and Lab - Operators.playground. Don't forget completed versions can be found in the Teacher.zip download. Check the wiki for download links.
- Slack me with any problems or queries. See you on Friday for the next Spatial lecture, the next ML lecture is first, on Thursday from 0930.