Sponsored Link
Add paywalls in one line of code
Take the pain out of configuring and testing your app's paywalls. With RevenueCat Paywalls you can remotely configure and edit your entire paywall view without waiting on App Review. See how it works here.
News
A Cozy WWDC
Iām really happy to see Apple experimenting with in-person events again. I wonder if weāll see more of these happen, maybe even outside of Cupertino?
It was a fantastic experience, and I hope Apple holds many more like it.
Thanks to Todd Heberlein for writing up his experience at the event. It sounds like this event was a great success. š
Swift Student Challenge 2025
In a change from previous years, Apple is announcing the Swift Student Challenge early this year. Really early! Applications for the challenge donāt open until February next year, so why talk about it now? From reading this news post, the intention is to give people a chance to learn Swift now to be ready to go in the February submission window. The āGet Readyā page is also updated with a new āSwift Coding Clubsā section. Do you know anyone who might want to learn the language? There are some great resources here.
Code
Genesis
This new tool from Alejandro MartĆnez is not the first static site generator for Swift. Not by a long way! But it is the newest, and it takes quite a different approach to the alternatives in that itās a very bare bones approach. Everything is just a String! Thereās also a lengthy post explaining some details and the thought process behind it, which youāll want to read, too!
Recap
Thereās not much to say about this new library from Joe Fabisevich, and thatās a good thing! Itās so easy to describe what it does. Iād go with āAdd Apple-inspired Whatās New screens powered by Markdown to your appā. Thereās more to it, like in-built version history and UI customisation, but you should know if you want it from the simple description.
How to keep Dateās microseconds precision in Swift
When I saw the title of this post from Toomas Vahter I almost dismissed it as being intended for someone else. Iām not doing any timing-critical maths with Date, and Iād bet youāre not either. I read it anyway, though, and you also may find the knowledge inside useful, even if you didnāt think it would be from the title!
Business and Marketing
12 Bite-Sized App Marketing Lessons
Thereās some especially good advice around email lists (essential!) and paid marketing in this post from Jordan Morgan. There should be a 13th rule, though. Write a blog post like this that markets your app and is interesting enough to share to other people in the industry who might have kids. š
And finally...
A few days into making One Million Checkboxes I thought I'd been hacked. What was that doing in my database?
Comment
I noticed something while reading Nezhyborets Oleksiiās latest post on formatting code across multiple lines. He skipped over a new Xcode feature, but it caught my eye as I have been hoping Apple would add this for years!
New in Xcode 16ās āEditorā menu under āStructureā youāll find āFormat File with swift-formatā. š I couldnāt wait to try it, so I loaded an Xcode project, opened a file, and it worked flawlessly! I donāt have
swift-format
installed globally on my machine, so Xcode must now bundle a version of the tool. It turns out that itās now part of the Swift 6.0 toolchain. Even better!Why am I so excited about this, though? We have been able to run this tool for years.
Iām excited because I care about formatting tools like this becoming trivial to use, and even one day for it to become default to run this tool every time you save a file. š±
I wrote something on āPrettierā a couple of years ago, and Iād urge you to re-read it before you continue. Itāll explain why I want this so much, and my feelings have only become stronger about it since then.
Exposing
swift-format
in Xcode is step one to that dream of the Swift community adopting a formatting standard. Even better, thereās no built in āset your formatting optionsā in Xcodeās Settings that I could see. I know it has options for controlling what rules get applied from a config file, but I hope Apple doesnāt push that customisability too much. In my opinion, it would be a step forward for Swift if we could agree on a standard format for Swift code. Unfortunately, getting developers to agree on that is impossible. It will take leadership instead, and Apple should provide that leadership.As far as I know, thereās no way to tell Xcode to run a command every time you save a file. I looked at whether Behaviours could do it, but I donāt believe it can. I hope Apple also add an easy way to perform a command on saving a file.
So if youāre reading this inside Apple, or if you know someone there who might have influence in this area, please pass this on. Iād also be more than happy to talk to anyone from that team if they would like to hear an even more passionate version of this intro! š I donāt expect them to switch the āformat on saveā command on by defaultĀ¹, but please give people the option.
Look to the JavaScript and Go communities to see what a success this could be. It will be worth a few weeks of complaints about what the final set of default rules should be, but itāll be a true step forward for more readable Swift code for the rest of time!
ā
Ā¹ Yetā¦ š
Dave Verwer