Keith Harrison
banner
useyourloaf.com
Keith Harrison
@useyourloaf.com
I write about iOS development at useyourloaf.com.
Treating Warnings as Errors in Swift Packages #swiftlang useyourloaf.com/blog/treatin...
Treating Warnings As Errors In Swift Packages
In Swift 6.2, Swift Packages give us control over which compiler warnings to treat as errors.
useyourloaf.com
September 4, 2025 at 9:49 AM
Reposted by Keith Harrison
🚨 PSA for all of you updating your apps for iOS 26:
When you build using Xcode 26, the large navigation title gets broken (no left padding) when running on iOS 18.
🔗 Link to a fix below.
August 31, 2025 at 12:59 PM
Reposted by Keith Harrison
Anyone hit problems enabling approachable concurrency (or flags in its grouping) aside from the migration step required for NonisolatedNonsendingByDefault? Not talking about default isolation here.

I haven't encountered any anywhere and I'm curious. Seems like it is going quite smooth so far.
August 31, 2025 at 11:14 AM
Swift Raw Identifiers
Swift 6.2 adds raw identifiers to the language.
useyourloaf.com
August 21, 2025 at 8:23 AM
When Observable replaced ObservableObject in iOS 17 it was missing a way to stream changes. That was fixed in iOS 26 (swift 6.2). #iosdev #swiftui useyourloaf.com/blog/swift-o...
Swift Observations AsyncSequence for State Changes
Swift 6.2 introduces a new Observations type to stream state changes from an Observable type.
useyourloaf.com
August 6, 2025 at 5:48 PM
Did anybody get Icon Composer .icon files to work for alternate app icons? #WWDC25 #Xcode
June 20, 2025 at 12:22 PM
How do you create a SwiftUI picker that works with optional selection so that not picking a value is possible? #iosdev #swiftui useyourloaf.com/blog/swiftui...
SwiftUI Picker With Optional Selection
Creating a SwiftUI picker that works with optional selection.
useyourloaf.com
May 14, 2025 at 5:53 PM
How do you write SwiftData predicates to query for parent relationships? #iOSDev #SwiftData #SwiftUI useyourloaf.com/blog/swiftda...
SwiftData Predicates For Parent Relationships
How do you write SwiftData predicates to query for parent relationships.
useyourloaf.com
May 9, 2025 at 9:58 AM
Reposted by Keith Harrison
UIApplication delegate deprecation coming in iOS 19 SDK

lapcatsoftware.com/articles/202...
UIApplication delegate deprecation coming in iOS 19 SDK
lapcatsoftware.com
April 19, 2025 at 3:42 PM
My notes on the surprising (to me) scope of SwiftUI keyboard shortcuts #SwiftUI #iOSDev useyourloaf.com/blog/swiftui...
SwiftUI Keyboard Shortcut Scope
A SwiftUI keyboard shortcut remains active as long as the control it's attached to is still in the view hierarchy, even when not onscreen.
useyourloaf.com
April 11, 2025 at 10:10 AM
How do you change the accessibility language used by VoiceOver with SwiftUI? #SwiftUI #iOSDev
useyourloaf.com/blog/swiftui...
SwiftUI Accessibility Language
How do you change the accessibility language used by VoiceOver with SwiftUI?
useyourloaf.com
April 2, 2025 at 9:35 AM
Changing the default behaviour of a scroll view to center content only when it’s smaller than the scroll view container #SwiftUI #iOSDev useyourloaf.com/blog/swiftui...
SwiftUI Default Scroll Anchor
Changing the default behaviour of a scroll view to center content only when it's smaller than the scroll view container.
useyourloaf.com
March 26, 2025 at 4:37 PM
Is there no way to set the accessibility language for a SwiftUI view? UIKit has the accessibility language property but there’s no equivalent in SwiftUI. I’ve seen people using AttributedString with the .accessibilitySpeechLanguage attribute but I can’t get it to work. #SwiftUI #iOSDev
March 25, 2025 at 11:33 AM
Swift Testing completion handlers #SwiftLang #iosdev useyourloaf.com/blog/swift-t...
Swift Testing Completion Handlers
How do you test completion handlers with Swift Testing.
useyourloaf.com
March 13, 2025 at 10:07 AM
Provisional authorzation to send local user notifications. A feature old enough (iOS 12) for me to forget it exists. #iOSDev useyourloaf.com/blog/provisi...
Provisional Authorization of User Notificatons
Requesting provisional authorization to send local user notifications.
useyourloaf.com
February 13, 2025 at 5:42 PM
How do you change the image a SwiftUI button shows when pressed? #SwiftUI #iOSDev useyourloaf.com/blog/swiftui...
SwiftUI Button Image When Pressed
How do you change the image a SwiftUI button shows while the user is pressing the button?
useyourloaf.com
January 29, 2025 at 8:05 PM
When the user chooses the reduce motion accessibility setting you should avoid large animations with objects that fly in/out of the screen #iOSDev #SwiftUI useyourloaf.com/blog/reducin...
Reducing Motion of Animations
Apply the reduce animation setting to your SwiftUI animations.
useyourloaf.com
January 23, 2025 at 10:53 AM
I like how building DocC with Xcode 16 now warns about documented parameters that don't exist in the method declaration #Xcode #iOSDev
December 11, 2024 at 11:18 AM
Migrating from XCTest to Swift Testing #iOSDev #SwiftLang useyourloaf.com/blog/migrati...
Migrating XCTest to Swift Testing
A quick guide to migrating XCTest unit test to Swift Testing.
useyourloaf.com
December 10, 2024 at 10:54 AM
Reposted by Keith Harrison
Ok, it's time for another one of these "Swift concurrency step-by-step" posts.

It explores working with types that are not Sendable. All based around reading a model from some data store.

www.massicotte.org/step-by-step...
Concurrency Step-by-Step: Reading from Storage
Not too long ago, I was re-reading an “introductory” post I wrote. Honestly, I could barely make it though. I guess a big part of that is that my own defintion of “introduction” when it comes to concu...
www.massicotte.org
November 30, 2024 at 12:25 PM
Reposted by Keith Harrison
The Department of Transport has a survey on how to integrate better. Tell them what you want (I want cycleways that connect to each other that are safe for children to use, and trains with a cadence high enough you don't need to use a timetable, like I had in London) www.smartsurvey.co.uk/s/PG2JMU/
Integrated National Transport Strategy: a call for ideas
Please take the time to complete our survey. Your feedback is important.
www.smartsurvey.co.uk
November 28, 2024 at 11:00 PM
Plotting functions with SwiftUI charts useyourloaf.com/blog/swiftui... #iOSDev #SwiftUI
SwiftUI Charts Plotting Functions
In iOS 18 SwiftUI charts can plot functions.
useyourloaf.com
November 27, 2024 at 4:13 PM
Automatic Trait Tracking in iOS 18 #UIKit #iOSdev useyourloaf.com/blog/automat...
Automatic Trait Tracking
UIKit automatically tracks trait changes starting in iOS 18.
useyourloaf.com
November 15, 2024 at 9:50 AM
Reposted by Keith Harrison
Ok let’s try something! For my new bluesky friends, I’m gonna spent ~ the whole day tomorrow answering Swift concurrency questions here.

Do your worst!

#SwiftLang
November 11, 2024 at 10:04 PM
I hit the issue today with awakeFromNib not being isolated to the main actor. Luckily mattiem has me covered: massicotte.org/awakefromnib #Iosdev #SwiftLang
What on earth is going on with awakeFromNib?
When I first got into Cocoa development, Interface Builder was a big deal. I used it pretty extensively until sometime around the macOS 10.7 era, when I began experimenting with programmatically-defin...
massicotte.org
November 8, 2024 at 11:29 AM