So I am in my hotel room, watching F1, preparing my slides for my talk at 360iDev on Tuesday, and writing this newsletter.
It's been a good trip to Denver. No crazy delays. Schiphol airport was even quite alright. There have been huge staff shortages at the security check. Travelers sometimes had to wait for hours in lines reaching out of the terminal building. But the worst seems to be behind us. I only had to wait in line for about 70 minutes.
The transfer at Detroit was a bit tense, only 80 minutes and I had a delayed arrival for like 15 minutes. But, a lot of friendly people allowed me to skip the line in security allowing me to make my flight. For sure I will always let someone pass in the security line when I have plenty of time to catch my flight.
Being in Denver and enjoying some of the sights here has been great. But once I publish this newsletter it is full-on work mode till Thursday. Being at a conference, doing a talk, and being part of a booth staff is different. Enjoyable, but an intense couple of days ahead.
On top of that, on the 24th I announced some preliminary plans for Do iOS in November. Make sure to follow Do iOS on Twitter, or better yet, sign up for the newsletter (the box top of page) on https://do-ios.com.
So lots great stuff going on.
My next podcast episode, I will try to do at 360iDev. But no promises just yet. And if you are at 360, come over say Hi! I won't bite.
Sponsored by
Air traffic control for mobile releases | Runway — www.runway.team Runway is a release platform for iOS and Android apps. Put your releases on autopilot and keep the whole team in sync throughout.
Released Content
Full on trip prep mode — appforce1.buzzsprout.com
Two weeks since my previous episode. And getting ready for my trip to 360iDev.
David Barnhard, co-host of SubClub by RevenueCat — appforce1.buzzsprout.com
This episode I am talking to David Barnhard from the SubClub podcast. Interviewing a fellow podcaster is always a blast. David runs the SubClub podcast for RevenueCat.
Stream Loves Open Source: Aug 2022 — getstream.io How Stream approaches open source and a list of open source projects that we maintain or sponsor.
DO iOS Conference - The iOS Conference in Amsterdam
Did a nice update of the DO iOS website, getting ready for another edition if we can get everything together.
Latest News Episode Links
Implementing a main thread watchdog on iOS · Jesse Squires
On iOS the operating system employs a watchdog that monitors for and terminates unresponsive apps. If your app is blocking the main thread for too long, the system will kill it. In crash reports, you can identify watchdog terminations.
Jesse suggests you can write your own main thread watchdog and add custom logging to your apps to help diagnose the root causes of `0x8badf00d` terminations.
Lenses and prisms in Swift — theswiftdev.com
Optics is a pattern borrowed from Haskell. It enables you to zoom down into objects. You can set or get a property of an object in a functional way. By functional Tibor means you can set a property without causing mutation, so instead of altering the original object, a new one will be created with the updated property. Tibor explains how such an architecture could look in Swift.
The easiest way to manage multiple Xcodes — testableapple.com
If you are still installing Xcode from the App Store or by downloading it from the Apple Developer Portal, this article is for you.
Shared with You implementation and testing explained
OS 16 introduced Shared with You allowing you to showcase content shared in Messages inside your app. Users can find back content they would otherwise lose in the history of a long conversation. Apps like Photos, Music, and Podcasts have already implemented support, and now it’s time to add support to your apps.
Shared with You matches content shared with URLs based on universal links. If the matching app for universal links supports this feature, the content might appear inside the app. Let’s dive into the implementation, testing, and when you can expect shared URLs to appear.
As always, Antoine's write-up is a good read to get you up to speed with "Shared with You".
Mastering grid layout in SwiftUI
You might be familiar with the LazyVGrid and LazyHGrid views we have from the second iteration of the SwiftUI framework. They work great for the massive data arrays you want to display as the grid. But it is not always possible to arrange the columns and rows strictly because of their lazy nature.
For these cases, SwiftUI introduces another type of grid that immediately lays out all of its children. This week we will learn how to use the new grid layout in SwiftUI and the benefits of the new grid over the lazy version of the grid component. Let’s start with a basic grid layout presenting a list of user data.
Cheat sheet on VoiceOver gestures for iOS — tanaschita.com Learn to test accessibility in your iOS applications with VoiceOver. Checkout frequently used VoiceOver gestures and how to create a shortcut to quickly switch VoiceOver off and on.
Implementing Password AutoFill for an iOS application — tanaschita.com
Apple's Password AutoFill feature allows users to login into the same account on different devices without having to remember their credentials.
For example, when signing up in a web app, users are able to generate a password and to save credentials in their iCloud keychain. When they run a native app to access the same account at some point, the app suggests the credentials stored for the website in the password QuickType bar. After the user authenticates, let's say by using Face ID, the system prefills the credentials - so there is no need to reenter them.
To activate Password Autofill in an iOS application you just need to do two things.
Well ok, not that simple. You need to setup the app's associated domains and set the correct `AutoFill` on relevant text fields.
In her article Natasha explains all the required steps, which are still a lot fewer than you might expect.
Server Guides Now on Swift.org — www.swift.org
If you want to get started with serverside swift, this is a very nice central place to start your journey.
Faster StoreKit testing by syncing in-app purchase products
StoreKit testing in the Simulator allows you to speed up testing in-app purchases for your app. You can test in-app purchases in Xcode by generating a StoreKit configuration file containing the available products for your app. You’ll be able to purchase products without connecting to App Store servers, without an internet connection, and you’ll be able to test edge cases like failing transactions.
A cumbersome process of using StoreKit configuration files has been to ensure using up-to-date products for your app. I’ve been testing Stock Analyzer for a while with introduction offerings that no longer existed, potentially trying use cases in the app that won’t happen in production. It’s essential to keep your configuration files up to date, and I’ll explain how you can do so using a new feature in Xcode 14.
