Sponsored Link
Say goodbye to StoreKit headaches
In-app subscriptions are a pain. The code is hard to test, full of edge cases, and requires regular maintenance. RevenueCat makes it straightforward and reliable, so you can get back to building your app. Plus, you get out-of-the-box subscription reporting, data integrations, price experiments, and more. Learn more here.
News
Upgrade to Xcode 14 by April 25th
As they do every year, it’s almost time for Apple to increase the minimum version of Xcode that you can use to submit apps to the store. Apple did mention this last year, but here’s your reminder if your company has been holding your version of Xcode back for some reason.
Swift 5.8 Released
WWDC wasn’t the only announcement from Cupertino this week. Xcode 14.3 shipped last night, and with it, Swift 5.8! Read about the language changes before moving on to associated releases of Swift Package Manager, DocC, and more. My personal favourite highlight of everything mentioned in the post is quick navigation in DocC documentation. Such a useful feature that I’ll use regularly!
Tools
DoccGPT
Is this what they mean when they talk about self-documenting code? 😂 This new tool from Gonzalo Nuñez looks excellent and would certainly save you some time by giving you a fantastic starting point for hand-written documentation.
I've only just realised...
You can do what? 😳🤯 How did I not know this tip? No wonder they call him Swifty McSwiftface!
Code
Handling status bar color scheme and visibility in SwiftUI
Handling the status bar is easy, right? You use light status bar text if your app’s background is dark and dark text on a light background. What when it’s more complicated than that, though? Daniel Saidi is here an investigation of what is probably the most common complex case.
Using UIHostingConfiguration Without Cell Views
I had to do a double-take when I read this article from Jonathan Hemi. At first, I misread the title and assumed the post was about UIHostingController
, a commonly used and well-known way to include SwiftUI views in a UIKit app. Instead, it is about UIHostingConfiguration
, an API introduced last year which is similar but different. You should read the article to find out more, though.
Lexical
Several great text editing controls have been released recently, and this week, Facebook added their contribution with this implementation of their Lexical JS editor. It’s not JavaScript here, though. It’s a full TextKit implementation.
There’s a good overview and quick start in their DocC documentation which I’d recommend if you want to try it out.
Jobs
SwiftUI and TCA Developer @ MFB Technologies, Inc. – We make Align, an enterprise platform used by top trial lawyers. Looking for a motivated dev to join our iOS team and help us add new features and integrations to our iPad client. The client app is written entirely in SwiftUI using The Composable Architecture (TCA) framework. U.S. residents only. – Remote (within US timezones)
Is your company hiring? I’d love it if you passed this link to whoever is responsible for advertising roles. Listings are free and get promoted to thousands of developers.
And finally...
If you need a daily reminder that it’s on its way…
Comment
This week’s announcement of WWDC snuck up on me a bit. Is it that time of year already?
Yes, it is, and as I am sure you’re well aware by now, you can drop your name in a hat any time before next Tuesday for the chance for a ticket to a single-day, in-person event at Apple Park. If that’s not for you, the plan for the week sounds similar to the last few years. I can’t see any significant changes, but I’m not sure anyone was looking for a shake-up of the format that has been so well received over the last couple of years. 👍
The only other announced event is the annual Swift Student Challenge, so check whether you qualify and open up a Playground if you do! Submissions close on April 19th.
I’ve not yet decided whether to put my name in the hat. I’ll let you know next week if I applied!
Dave Verwer