Using Core Data With SwiftUI - An Introduction
A guide on integrating Core Data with SwiftUI using @FetchRequest and @Environment.
Andrew Bancroft — Experienced iOS developer, educator, and writer with 15+ years of experience, sharing clear, practical guidance on Swift, SwiftUI, iOS development, and data persistence to help developers succeed.
204 articles from this blog
A guide on integrating Core Data with SwiftUI using @FetchRequest and @Environment.
A developer documents buggy behavior in NSPersistentCloudKitContainer for iOS 13, including sync issues and missing methods.
Apple's SwiftUI tutorials converted into interactive Playgrounds for hands-on learning and tinkering.
Explains Swift ABI stability, why it matters for framework compatibility across compiler versions, and its impact on iOS/macOS development.
Learn how to create and make a Bash script executable to automate repetitive command-line tasks.
Explains what an Application Binary Interface (ABI) is, contrasting it with APIs and user interfaces in computing.
Explores how smart or dumb NSManagedObject subclasses should be, focusing on Core Data lifecycle overrides and validation.
Analysis of strategies for fetching and displaying Core Data objects, comparing returning full NSManagedObject instances vs. only needed properties.
Learn how to use SwiftUI in a Playground for faster UI iteration without macOS Catalina.
A guide to syncing Core Data with iCloud using NSPersistentCloudKitContainer, including setup and example project.
Guide on accessing root view controller in iOS 13 apps using SceneDelegate instead of AppDelegate.
Exploring new features in Xcode 11 like capabilities search, editor quick actions, minimap improvements, and source control history.
Troubleshooting guide for Core Data model loading errors in iOS development.
A developer's first impressions of NSPersistentCloudKitContainer, exploring how it simplifies syncing Core Data with CloudKit.
Explains the declarative nature of SwiftUI with a restaurant analogy, emphasizing understanding over copying code.
A beginner's guide to getting started with SwiftUI in Xcode, covering views, stacks, and previews.
A tutorial on extracting, updating, and formatting currency values in a UILabel using Swift and NumberFormatter.
Tutorial on loading CSV files in R using read.csv() from local directories, home paths, and URLs.
A tutorial 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 using a car sales example.