Swift UI Day 5: Learning conditions

Today was a longer lesson! Time to learn:

  • How to check if a condition is true

  • How to check multiple conditions

  • How to use switch statements to check multiple conditions

  • Finally, the ternary conditional operator

I now know things such as if, else, && and also || - who knew! Not me (and probably not me in 30 minutes because I absolutely need to re-read some of this! I’m getting used to commenting notes inside Xcode for reference. It’s allowing me to firstly, remember how to comment and also - it’s helpful for when the tasks come up! Future me should be thankful.
I feel like things so far are making sense but I absolutely have to follow a long - there’s no way I’m writing things from scratch. I have found myself pausing the video as much as I can and writing ahead which I managed to do for some of the image below!

It's Time - I'm Learning SwiftUI

As I look back on the journey I took with tech, there has always been a nagging feeling of something I didn’t do—learn to program. I’ve dipped my toes into C++; I’ve stuck my nose into Python, and I even tried a few poor attempts at Unity game design, but nothing ever stuck. The truth is, I really do like Apple products, and as much as I use a PC more times than not during work, I love my Mac, iPhone, iPad, etc. It’s that ecosystem, right? I got my first Mac in my teens after waiting a long time and spending way too many hours watching and reading everything about them. I was absolutely obsessed with that machine. (If you’re wondering, it was the white plastic MacBook—the thing was beautiful. Well, until I wore out where I rested my hands!) I still feel the rush I had back then getting a new Apple product and working on MacOS.

I have finally settled on learning SwiftUI. I did a lot of research on UI vs. UIKit and where to even begin! I needed to find recommendations as this is something I’m doing without the luxury of a university course where someone was going to teach me personally. The internet points to one source in particular: 100 Days of SwiftUI I’m not only using this, but I’m using it as a base and something I should at least be completing daily. I’m also looking at books and other tutorials, but this as a general consensus is a good starting point. One of the ‘rules’ is that you should really share your progress. I’m doing so on Twitter but also want somewhere that I can write more openly and not annoy my more gaming-focused Twitter followers!

Please feel free to comment or follow along - I’m sure this will be full of rants, joys, and everything in between.