Filters

Hide filters
Platform
Content Type
Difficulty

iOS & Swift · 6 Results

Contained in: Integrate Combine Into an App core data iOS & Swift
iOS & Swift

Extend, Save & Delete Core Data Objects

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

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

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
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

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

…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…