Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewcbancroft/BlogIdeaList-SwiftUI
https://github.com/andrewcbancroft/BlogIdeaList-SwiftUI
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewcbancroft/BlogIdeaList-SwiftUI
- Owner: andrewcbancroft
- Created: 2019-07-31T10:45:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-07T17:31:27.000Z (over 4 years ago)
- Last Synced: 2024-08-03T17:20:54.341Z (6 months ago)
- Language: Swift
- Size: 47.9 KB
- Stars: 71
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- fucking-open-source-ios-apps - BlogIdeaList-SwiftUI
README
# Using Core Data With SwiftUI - An Introduction
This sample code project is associated with the following guides at [andrewcbancroft.com](https://www.andrewcbancroft.com):
* [Using Core Data With SwiftUI - An Introduction
](https://www.andrewcbancroft.com/blog/ios-development/data-persistence/using-core-data-with-swiftui-introduction/)
* [How to Pass NSManagedObjectContext to a SwiftUI View](https://www.andrewcbancroft.com/blog/ios-development/data-persistence/passing-nsmanagedobjectcontext-to-swiftui-view/)
* [How to Use @FetchRequest in SwiftUI](https://www.andrewcbancroft.com/blog/ios-development/data-persistence/how-to-use-fetchrequest-swiftui/)## Overview
How does Apple intend for us to use Core Data with SwiftUI?
This project demonstrates how to stitch things together.
It's a single-view app that can
* Persist a list of `BlogIdea`s to a Core Data persistent store
* Use the new `@FetchRequest` property wrapper to fetch `BlogIdea`s
* Use the `@Environment`'s `managedObjectContext` to create, update, and delete `BlogIdea`sWithin the code,
❇️ Alerts you to Core Data pieces
ℹ️ Alerts you to general info about what my brain was thinking when I wrote the code