Про NSPersistanceContainer - новый способ настройки стека CoreData в iOS 10, на 3000% более быстрый и безопасный.
https://swifting.io/blog/2016/09/25/25-core-data-in-ios10-nspersistentcontainer/
#coredata
https://swifting.io/blog/2016/09/25/25-core-data-in-ios10-nspersistentcontainer/
#coredata
Обеспечиваем потокобезопасность при работе с CoreData, закрывая NSManagedObject свифтовыми протоколами. Решение не без недостатков (в ObjC вообще не рекомендую так делать), но жизнеспособное. А по ссылке в статье есть еще вариант по работе со структурами.
https://swifting.io/blog/2017/02/05/35-structs-alternative-using-swift-protocols-to-enhance-safety-of-core-data-access/
#coredata #swift
https://swifting.io/blog/2017/02/05/35-structs-alternative-using-swift-protocols-to-enhance-safety-of-core-data-access/
#coredata #swift
Про неочевидные особенности поведения NSManaged-свойств у объектов в свифте.
http://holko.pl/2017/09/18/surprising-non-optional-nsmanaged/
#swift #coredata
http://holko.pl/2017/09/18/surprising-non-optional-nsmanaged/
#swift #coredata
holko.pl
Surprising behavior of non-optional @NSManaged properties
Core Data is not a first-class citizen in the Swift world. Its inherently dynamic nature is lurking at us through an attribute created specifically for it: @NSManaged. Let me show you how this dynamic nature caught me off guard. I ended up with a property…
Очень, очень, очень хорошая статья про CoreData. Набор довольно очевидных, но суперважных правил для тех, кто работает с этим фреймворком. Отдельно понравилось про «Several years ago I created a framework to access the stackoverflow.com API, and networking was done via a custom Core Data store that translated Core Data requests in to API calls. It was weird, but it worked.»
https://davedelong.com/blog/2018/05/09/the-laws-of-core-data/
#coredata
https://davedelong.com/blog/2018/05/09/the-laws-of-core-data/
#coredata
Dave DeLong
The Laws of Core Data
In my conversations with developers, I’ve heard a pretty common theme from them that “Core Data is hard” or “Core Data is buggy” or “I could never get it to work right and gave up on it”.
Помните позавчерашнюю ссылку про CoreData? Прилетела ответочка с критикой от другого специалиста по теме.
http://www.cimgf.com/2018/05/10/response-the-laws-of-core-data/
#coredata
http://www.cimgf.com/2018/05/10/response-the-laws-of-core-data/
#coredata
Разбор принципов устройства миграций CoreData и разработка мигратора.
https://williamboles.me/progressive-core-data-migration/
#coredata
https://williamboles.me/progressive-core-data-migration/
#coredata
William Boles
Progressive Core Data Migrations
There are very few certainties in app development, but one is that once your app is released it will change in unexpected ways. And no matter how flexible your architecture is, inevitably one of those changes will be a breaking change
Отличный разбор того, как хранить изображения и видео в CoreData с бенчмарками разных вариантов.
http://www.vadimbulavin.com/how-to-save-images-and-videos-to-core-data-efficiently/
#coredata
http://www.vadimbulavin.com/how-to-save-images-and-videos-to-core-data-efficiently/
#coredata
Yet Another Swift Blog
How to Save Images and Videos to Core Data Efficiently
Core Data has been in iOS and macOS going back as far as anyone can recall. Nonetheless, there is no widely adopted strategy of storing images and videos in Core Data. In this article let's implement and benchmark most popular Core Data persistence strategies…
Автор фреймворка Ensembles разбирает очередную попытку Apple реализовать синхронизацию данных CoreData через CloudKit.
https://medium.com/@drewmccormack/apples-new-cloudkit-based-core-data-sync-4c1f334044bc
#coredata
https://medium.com/@drewmccormack/apples-new-cloudkit-based-core-data-sync-4c1f334044bc
#coredata
Medium
Apple’s New CloudKit-Based Core Data Sync
TLDR; At WWDC19, Apple entered into another chapter in their struggles with getting Core Data to sync reliably. Is it a case of “third…
Настройка обновленной связки CoreData и CloudKit.
https://www.andrewcbancroft.com/blog/ios-development/data-persistence/getting-started-with-nspersistentcloudkitcontainer/
#coredata
https://www.andrewcbancroft.com/blog/ios-development/data-persistence/getting-started-with-nspersistentcloudkitcontainer/
#coredata
Andrewcbancroft
Getting Started With NSPersistentCloudKitContainer
Provides an example project and walkthrough for saving and syncing a single Core Data Entity with CloudKit using NSPersistentCloudKitContainer