Core Data by Tutorials
Core Data by Tutorials
Summary:
Introduction
The book "Core Data by Tutorials" (2020) by the Raywenderlich Tutorial Team is a comprehensive practical guide to the Core Data framework for Apple platforms. Over 416 pages, the authors guide the reader step by step from the basics of creating a data model to complex topics such as migrations, multithreading, and performance. The book is written in Swift and is aimed at developers who already have basic experience in iOS/macOS development.
What the book is about
The book is structured as a series of tutorials (lessons), each dedicated to a specific topic. Instead of dry theory, the authors suggest creating real applications, gradually making them more complex. The main sections cover:
- Setting up the Core Data stack (NSPersistentContainer, NSManagedObjectContext, NSPersistentStoreCoordinator);
- Creating and managing NSManagedObject objects;
- Working with queries (NSFetchRequest, NSPredicate, NSSortDescriptor);
- Relationships between entities (one-to-one, one-to-many, many-to-many);
- Data migrations (lightweight, heavyweight, manual);
- Multithreading in Core Data (NSPrivateQueueConcurrencyType, NSMainQueueConcurrencyType);
- Performance optimization (lazy loading, fetching, indexes);
- Integration with UITableView and UICollectionView via NSFetchedResultsController;
- Using Core Data with CloudKit for synchronization between devices.
Who this book is for
The book is intended for intermediate iOS/macOS developers who are already familiar with the basics of Swift and UIKit/SwiftUI, but want to systematize their knowledge of Core Data. Beginners just starting to learn Swift will find it challenging — the authors assume the reader knows how to work with Xcode, Interface Builder, and basic patterns (MVC).
What the reader will learn
After reading the book, you will be able to:
- Design an efficient data model for an application;
- Set up the Core Data stack manually and using NSPersistentContainer;
- Execute complex queries with filtering, sorting, and aggregation;
- Manage relationships between objects and avoid circular references;
- Perform data migrations without data loss;
- Work with Core Data in a multithreaded environment;
- Optimize query performance and reduce memory consumption;
- Integrate Core Data with modern UI frameworks (SwiftUI, Combine);
- Set up data synchronization via CloudKit.
Strengths of the book
Practical focus. Each chapter is a complete project with step-by-step instructions. You don't just read theory, but immediately apply it in practice. Relevance. The book is from 2020, so it uses modern APIs (NSPersistentContainer, Swift 5). Structure. The material is divided into logical blocks, from simple to complex. Each chapter ends with exercises for reinforcement. Code quality. All examples are tested and follow Apple's best practices. Community support. Raywenderlich is one of the most authoritative resources for iOS development; the book is accompanied by a forum and updates.
Who it is recommended for
The book will be useful for:
- iOS developers who want to deepen their Core Data knowledge;
- Developers transitioning from Objective-C to Swift;
- Students and course graduates seeking practical experience;
- Anyone planning to create applications with local data storage (notes, tasks, catalogs).
If you have already worked with Core Data but feel gaps in understanding multithreading or migrations — this book will fill them. If you are a beginner — start with a simpler introduction, such as Apple's official documentation, and then return to this guide.
Conclusion: "Core Data by Tutorials" is a must-read for any se
Recommendations
Algorithms and Data Structures in TypeScript
PHP Application Architecture: From Chaos to Order
Architecture of Rust Applications: From Design to Production
Refactoring Go (Golang) Code: From Chaos to Ideal Architecture
JavaScript (Node.js) and Docker: Containerizing Applications
GraphQL on PHP: A Complete Guide to Building Modern APIs