Page A SwiftData Feed With A Stable Cursor
Replace shifting offsets with a tested SwiftData cursor, handle tied dates and deleted rows, and keep failed reads from losing your place.
Read moreShowing 1–7 of 7 posts
Replace shifting offsets with a tested SwiftData cursor, handle tied dates and deleted rows, and keep failed reads from losing your place.
Read moreKeep bundled timer presets separate from user choices, preserve explicit settings across catalog updates, and surface conflicting records without deleting them during a read.
Read moreCombine ownership, optional relationships, search, and archive filters with Predicate(all:) and Predicate(any:), then drive a SwiftData query safely.
Read moreConvert stored SwiftData values with an intermediate schema, retain legacy values during conversion, and test real upgrades from older app versions.
Read moreWWDC26 adds sectioned queries, codable attributes, ResultsObserver, and HistoryObserver so SwiftData apps can react to store changes without hand-rolling array diffs.
Read moreSwiftData's iOS 18 schema macros can add indexes and uniqueness rules. Use them carefully for fast fetches and duplicate prevention.
Read moreSwiftData history lets you ask what changed since a saved token, which is useful for widgets, sync, badges, and background work.
Read more