Adam Garrett-Harris

53 Followers
124 Following
180 Posts
iOS Developer
He/him

@mattiem I know you love concurrency questions, so, is there a good way to access UIColors from a background thread? I think that has to be on the main thread, right?

I have some code that picks a random UIColor and gets its hex value that was crashing. I'm guessing that it's because it's sometimes called from a background thread, but it's hard to reproduce.

This talk from #wwdc25 is a must watch! Shows one how to tackle concurrency in real apps, a lot of interesting clues on how to approach errors and warnings, how to (practically) refactor things to make it work and a list of concepts you may want to look up 📚 #Swift https://developer.apple.com/videos/play/wwdc2025/270
Code-along: Elevate an app with Swift concurrency - WWDC25 - Videos - Apple Developer

Learn how to optimize your app's user experience with Swift concurrency as we update an existing sample app. We'll start with a...

Apple Developer
Xcode 26 beta 2 does open without crashing! 🙌
https://mstdn.social/@agarrharr/114677852538181387
Adam Garrett-Harris (@[email protected])

I was able to run Xcode 26 on macOS Sequoia on my M4 Mac mini. I still don't know why it crashes on my MacBook...

Mastodon 🐘

As a tech enthusiast, passkeys are amazing and I want more sites/apps to adopt them.

As a developer, I'm afraid that adding them to a site will confuse users.

How I sometimes feel when I read Apple's documentation:

Universal Basic Income - where everyone has enough income to afford basic needs like food and housing - is a moral imperative. (note I did not include healthcare or education because those should be free)

The argument "well if you pay people enough to live on they might not want to work" is puzzling to me... because food and shelter are human rights. The imperative to work... is not. If people don't want to do the crappy jobs if they can live without them, then we'll have to pay people more to do those jobs. As it should be!

Also, fyi, every single trial of ubi has found that people do not, in fact, work less, but they ARE more creative and entrepreneurial.

What's stopping us?

Looks like my app, Countable, shows up in Apple Games... I think that's ok, because, while it's not a game itself, you can use it to play games.
Btw, here is a link to my app. It's a score tracker for 2 players. It has widgets and shortcut active. And it supports Voiceover and Voice Control. https://apps.apple.com/us/app/countable-score-tracker/id6479331579
https://mstdn.social/@agarrharr/114677643951759525
‎Countable - Score Tracker

‎Countable Countable is the best 2 player score-keeping app for card games. Just set the phone on the table between you and your opponent and you'll always have quick access to your current score. Countable's features: Interactive Widgets View either player's score and add and subtract to it right…

App Store
I was able to run Xcode 26 on macOS Sequoia on my M4 Mac mini. I still don't know why it crashes on my MacBook...
My app had a little spike (75 instead of 0-1 per day) in downloads when I made it free earlier this month