Blog

How to fix “Field ‘recordName’ is not marked queryable” in CloudKit

The issue While writing an iOS app in Swift using CloudKit and CoreData with NSPersistentCloudKitContainer, I ran into the issue “Field ‘recordName’ is not marked queryable” and couldn’t see an obvious solution. Searching online didn’t give many helpful results either. This error message would show up in the CloudKit Dashboard as well as in theContinue reading “How to fix “Field ‘recordName’ is not marked queryable” in CloudKit”

WebDAV Swift Released

WebDAV Swift is a Swift library for communicating with WebDAV servers such as Nextcloud. Version 2.2.0 has released which brings it to a point where I feel like it is ready to be shared. Features Create, read, update, and delete files Image thumbnail fetching from Nextcloud servers Multi-level memory and disk cache for images andContinue reading “WebDAV Swift Released”

How to only run onDisappear when a view is unloaded in SwiftUI

SwiftUI’s view modifier onDisappear is useful for running code when a view goes away. The issue is that it doesn’t differentiate between the view being unloaded and it simply being covered or hidden. Sometimes you want to run specific code when the view is dismissed or unloaded. Simply putting that code in an onDisappear willContinue reading “How to only run onDisappear when a view is unloaded in SwiftUI”

The quest to make SwiftUI swipe-to-delete not look and feel terrible

I don’t know if I’m the only one who feels this way, but I hate the way the swipe-to-delete function looks and feels in SwiftUI. In UIKit, after you swipe a cell, the background animates to fill the rest of the cell with destructive red and the cell collapses. This feels like it’s finishing theContinue reading “The quest to make SwiftUI swipe-to-delete not look and feel terrible”


Follow My Blog

Get new content delivered directly to your inbox.

%d bloggers like this: