Contained in: Integrate Combine Into an App
core data
iOS & Swift
iOS & Swift
Extend, Save & Delete Core Data Objects
Aug 5 2021 · Lesson
While SwiftUI and Swift make heavy use of Structs, Core Data still uses classes. In this episode, learn some techniques to convert between the two types so you can save your jokes into the database, and delete them when your user just doesn’t find a joke funny anymore…
iOS & Swift
Create the Core Data Stack
Aug 5 2021 · Lesson
Core Data stack is the main interface with Core Data for your entire app. In this episode, you’ll initialize the Core Data stack, and inject it into the SwiftUI Environment so you can fetch values from it later…
iOS & Swift
Use @FetchRequest to Get Core Data Entries
Aug 5 2021 · Lesson
FetchRequests allow you to get data from a Core Data database for a given entity type, sort method, and predicate. In this episode you’ll use a special property wrapper, @FetchRequest, to bind a FetchRequest with the Core Data database, allowing you to keep your UI elements up to date…
iOS & Swift
Integrate Combine Into an App
Aug 5 2021 · Video Course (27 mins)
Norris jokes app, using Combine to fetch jokes, translate them into another language, and even - as a bonus - learn how to use Combine with Core Data to save jokes to tell your friends later…
iOS & Swift
Identify Where to Use Combine
Aug 5 2021 · Lesson
SwiftUI using built-in property wrappers. The user will be able to save their favorite jokes, and that will happen by way of a Core Data database. Here, Combine will allow the user interface and the database to stay in sync as values are added or deleted. Finally, testing…
iOS & Swift
Use @ObservedObject to Monitor State
Aug 5 2021 · Lesson
…publishers are built and are now hooked into our view model. Now to move onto our next feature - storing liked jokes in a Core Data database, which we’ll do next…