Using Core Data With SwiftUI - An Introduction
An introduction to using Core Data with SwiftUI, covering @FetchRequest, @Environment, and NSManagedObject integration.
Andrew Bancroft is an experienced iOS developer and educator with over 15 years of experience. He shares tutorials, courses, and insights on Swift, SwiftUI, Core Data, and app development best practices.
203 articles from this blog
An introduction to using Core Data with SwiftUI, covering @FetchRequest, @Environment, and NSManagedObject integration.
A developer documents buggy behaviors in NSPersistentCloudKitContainer from iOS 13 beta, including sync issues and missing methods.
Turning Apple's SwiftUI Essentials tutorials into interactive Playgrounds for hands-on learning and tinkering.
Explains Swift ABI stability, why it matters for framework compatibility across compiler versions.
Learn how to create and make a Bash script executable to automate repetitive command-line tasks.
Explains what an Application Binary Interface (ABI) is, how it differs from APIs, and its role in compiled code interaction.
Explores how smart or dumb NSManagedObject subclasses should be, focusing on Core Data lifecycle and validation.
Discussion on strategies for fetching and displaying Core Data objects, comparing returning full NSManagedObject instances vs. only needed properties.
Quick guide to using SwiftUI views in Xcode Playgrounds with code snippet.
A guide to syncing Core Data with iCloud using NSPersistentCloudKitContainer, including setup and CRUD operations.
Guide on accessing root view controller in iOS 13 apps using SceneDelegate instead of AppDelegate.
A developer shares delightful new features in Xcode 11, including capabilities search, quick actions, minimap improvements, and source control history.
Troubleshooting Core Data model loading errors in iOS development, including target membership and naming fixes.
Overview of NSPersistentCloudKitContainer from WWDC 2019, highlighting how it simplifies Core Data and CloudKit integration.
Explains the declarative programming paradigm in SwiftUI using a restaurant analogy.
A beginner's guide to getting started with SwiftUI, covering views, stacks, and the Xcode canvas.
Tutorial on extracting, updating, and formatting currency values in a UILabel using Swift and NumberFormatter.
Tutorial on loading CSV files in R from local directories and URLs with code examples.
Guide on showing the Live View in a Swift Playground using the Assistant Editor.
Explains the difference between axis=0 and axis=1 in Pandas DataFrames with a practical car sales example.