100 Days of Swift
2026-04-19
We’re following along 100 days of SwiftUI, so maybe I’ll be able to make my own StarfishX type images 🙃
First hurdle: opening XCode and being asked “what components?” ?? I dunno? So I added iOS Simulator.
Second: finding the Playground since it’s not an option from the opening screen of XCode.
< take a little break to choose a different editor theme >
- create constants with
let - create variables with
var - boolean
toggle()is pretty cool - string interpolation only requires 1 set of
""e.g.print("Celcius: \(celciusTemp), Fahrenheit: \(farhenheitTemp)")
This was kinda fun, but I realized that I was doing arrays and enums and that seemed like a bit much for Day 1?
I was following the “next” link at the bottom of the page and not going back to the Table of Contents. When I figured that out, I saw the quizzes and did those and stopped.
Note to self: Remember to always use the TOC page of the Day.
Being me, I decided to make a post image to count my days. This involved picking one of my old starfish images and then putting some text on it. Since it’s a 100-day course, that would be 100 images.
Did you know there’s an Imagemagick library for R, and if you use RStudio it will preview your image modifications?
So I did a little bit of R scripting today too
library(magick)
dayimg <- image_read("swiftui.jpg")
days <- seq(from = 1, to = 100)
for (day in days)
{
labelText <- paste0('Day\n',day)
imgpath <- paste0("posters/Day",day,".jpg")
newimg <- image_annotate(dayimg, text=labelText, size = 130, weight = "900", gravity = "center", color = "#7500C9", strokecolor = "black")
image_write(newimg,imgpath)
}