Exploring SwiftUI and iOS app development.
Introduction
I’ve been fiending to learn a little bit more about iOS development and all the hot rage behind SwiftUI Apple’s very own development language.
The class I elected to take (although there are many great resources) is Stanford’s CS193p - Developing Apps for iOS. The class is - incredibly enough - free of charge and can be found over here.
Overview
You can explore the class page for yourself but basically I’ll outline the 14 lessons that I went through.
- Course Logistics and Introduction to SwiftUI
- MVVM and the Swift Type System
- Reactive UI + Protocols + Layout
- Grid + enum + Optionals
- ViewBuilder + Shape + ViewModifier
- Animation
- Multithreading EmojiArt
- Gestures JSON
- Data Flow
- Navigation + TextField
- Picker
- Core Data
- Persistence
- UIKit Integration
In addition, you can find all 27 pages of my class notes in a nice PDF.
Projects
There are a couple main projects you build. The class - the instructor is fantastic by the way - likes to reassert the motto, “a picture is worth a thousand words but a demo is worth tens of thousands of words.” While not exactly the same thing, I’ll let the short synopsis here cover some of the work. There is really four main projects you explore.
- Memorize Game
- Set Game
- Emoji Art (game where you can combine images and emojis to create art)
- Enroute (Basically, an application to parse the FlightAwareAPI and show flight information)
Note, I didn’t show gif demo for the Enroute application (number 4 above) because it was largely all demo code that I didn’t write. I included the code itself in the repo because I made comments in the code.
Memorize Game
Set Game
Emoji Art
iPad Version
iPhone Version
Comments
The class was definitely a fair bit of work. It felt good to get absolutely wrecked by a couple niche bugs (I would recommend watching Lecture 11 before completing Assignment 6 as there is a lot of revelant material in there). The class took me longer than I expected and also provided a lot more late night debugging sessions.
Also full disclosure, while the online free class is an excellent resource, I can only imagine that having access to other Stanford students as well as the Class Piazza accelerates the amount of information absorbed.
I would highly recommend this class to anyone interested in learning more about iOS development and working with SwiftUI. It’s very clear, relevant, and hopefully will be useful for my own pet projects.
Other Helpful Links
Again, I’ll same the same disclaimer as when I took Coursera’s Computational Neuroscience class. While I’ve included all of the code that I used to answer the homework assignments, please do not abuse this. You’re only doing yourself a disservice in terms of what you learn. I included some of the stanford code lectures (also found on the class website) because I commented the code and took notes within the code itself.
As always feel free to email me with questions - although, I’m far from an expert! I am more than happy to help debug.
Once again, you can get the notes here.
In addition, there was one aspect I could not get… I posted on Stack Overflow about it after I kept getting it wrong and couldn’t code up a solution. If you think you can help, I’d love for you to answer my question on Stack! Check it out [here][question].