Sep. 23, 2022
So, I might have found a slightly better method for sharing code in posts that I complained about the other day . GitHub has a thing called Gists . It’s like a tiny repository you can paste a code snippet into (or upload a source file). Once that’s done, you can just paste the URL of the Gist into Wordpress - it recognises it and does this:
ForEach(0..<3) { number in
Button {
// flag was tapped
flagTapped(number)
} label: {
FlagView(flagOf: countries[number])
}
.rotation3DEffect(.degrees(flagSpinAmount[number]),
axis: (x: 0, y: 1, z: 0))
.opacity(flagOpacity[number])
.scaleEffect(flagScale[number])
.animation(.default, value: flagSpinAmount)
}
I came across this being used on a blog post (about using the camera in apps) from Gaspard Rosay .
Sep. 21, 2022
I’ve been using Quicktime to screen record the preview or simulator to document my work here and in Github ReadMe’s, but thanks to this excellent short post by Sarun W , I now know it’s possible to do that directly from the simulator, including capturing gestures, and exporting to animated gifs!
Sep. 20, 2022
I’ve been changing the Xcode font size by going into the preferences, themes, then selecting the different content types and changing the font size.

I guess I could speed that process up by saving some themes with different text sizes, but I’ve noticed a few times in tutorial videos that there must have been an easier way. It turns out that Ctrl + “+” and Ctrl + “-” increases and decreases the code font size.
Sep. 17, 2022

A quick tip - since it was not immediately obvious to me. If you need to download a file from GitHub (as opposed to cloning it etc), look for the “Raw” button - that’s a link to the file, then right click and do whatever your browser needs to download a web resource.