Xcode 11 Beta
Xcode 11 Beta Release Notes: Xcode 11 beta supports development with SwiftUI. Xcode supports uploading apps from the Organizer window or from the command line with xcodebuild or xcrun altool....
View ArticlePersistent History Tracking in Core Data
Steffen Ryll: At WWDC ’17, Apple introduced a number of new Core Data features, one of which is Persistent History Tracking or NSPersistentHistory. But as of the time of writing, its API is still...
View ArticleThe Curious Case of the Core Data Crash
Sean Heber: iOS routinely terminates apps for all sorts of reasons, including using too much memory or taking too long to do background processing. I don’t know why this information isn’t included in...
View ArticleCore Data Derived Attributes
Scott Perry: Documentation for Core Data’s new derived attributes feature is up! It’s a really cool feature. NSDerivedAttributeDescription (see also: derivationExpression): Use derived attributes to...
View ArticleCore Data Lab 1.0
Ron Elemans (via Mike Rundle): The Core Data viewer app we had in mind should be able to filter data in any way we like, show related data defined by Core Data relationships, allow to edit and delete...
View ArticleiOS Developer Survey
Dave Verwer: The iOS Developer Community Survey is the largest public survey of Apple platform developers ever undertaken. Data collection happened over four weeks between 6th December 2019 and the 7th...
View ArticleMaking Swift Properties Overridable Only in Debug Builds
John Sundell: Occasionally, we might want to override certain properties in order to facilitate testing, to be able to work on a new feature, or to debug a problem. […] Here’s a way to mitigate that...
View ArticleWhy NetNewsWire Is Fast
Brent Simmons (tweet): The parsers are fast — but we also do our best to skip parsing entirely when we can. There are two ways we do that. We use conditional GET, which gives the server the chance to...
View ArticleMarking Unused Required Swift Initializers As Unavailable
Jesse Squires: However, if you do not use Interface Builder, then init(coder:) is irrelevant and will never be called. It is annoying boilerplate. But the real problem is that Xcode (and presumably...
View ArticleBacking Up Core Data Stores
Tom Harrington: Once you use this method, the persistent store you migrated is removed from the persistent store coordinator. It also adds the newly-migrated store to the coordinator. So now the store...
View ArticleUser-defined Order in SQL
Joe Nelson (via Hacker News): The most natural first attempt is to add an auto-incrementing integer column to track each item’s position[…] It requires updating a bunch of rows to insert one between...
View ArticleCore Data Growing Pains
Whitney Young: Today I’m going to discuss nested context support in Core Data and various issues that exist with them. Some of these issues are minor bugs. Others may be considered functionally correct...
View ArticleDevelopers Dish on iCloud’s Challenges
Lex Friedman: Implementing the first two syncing approaches isn’t easy, but developers tell Macworld that the third approach, for syncing Core Data, is what Steve Jobs might call “a bag of hurt”—it’s...
View ArticleReplacing vs. Migrating Core Data Stores
Apple Frameworks Engineer: Additionally you should almost never use NSPersistentStoreCoordinator’s migratePersistentStore method but instead use the newer replacePersistentStoreAtURL. (you can replace...
View ArticleMaking NSFetchRequest.fetchBatchSize Work With Swift
Apple Frameworks Engineer: Set in Swift is an immutable value type. We do not recommend making Core Data relationships typed this way despite the obvious convenience. Core Data makes heavy use of...
View ArticleHow to Set Up Core Data and CloudKit
Becky Hansmeyer (tweet): Turns out, if you want to sync Core Data-backed data between devices and have those changes reflected in your UI in a timely manner, you have some more work to do. To figure...
View ArticleSwift Overloads That Differ Only in Async
Gwendal Roué: I wish users could use the same method names in both synchronous and asynchronous contexts.[…]But I face “Invalid redeclaration” compiler errors, as expected according to the...
View ArticleiCloudCoreDataStarter and Temporary IDs Bug
Chad Etzel (tweet): In the course of building Sticker Doodle (which you should go download right now), I ran into many brick walls and learned way too much about Core Data, iCloud sync, Collection and...
View ArticleSwift Playgrounds 4
Juli Clover (Hacker News): Apple today released Swift Playgrounds 4, an update to the Swift Playgrounds app that’s been in the works for some time. The newest version of the app allows iPhone and iPad...
View ArticleClash of the Optionals
Tom Harrington: What is an “optional” anyway? It depends who you ask. Swift will give you one answer, but Core Data has other ideas. So what happens when you bring them together? […] Guess what, you...
View Article