Filters

Hide filters
Platform
Content Type
Difficulty

iOS & Swift · 19 Results

Contained in: Core Data: Beyond the Basics core data iOS & Swift
iOS & Swift
Core Data: Beyond the Basics
…this course, you’ll learn about how to fetch, sort and filter entries from a Core Data persistent store. You’ll also dive into some more advanced topics such as delete rules and Core Data with Swift Concurrency…
iOS & Swift

Storing Large Files

Understand the difference between Transformable and Binary Data attributes and how you can save large files.
iOS & Swift

Transient Properties

…best approach - the more you duplicate your logic the more you leave room for error. Instead you’re going to use Core Data’s transient properties. Navigate to the RocketLaunch data model, select the Tag entity and add a new attribute named launchCount . Set the type to Integer16…
iOS & Swift

Conclusion

data using predicates and compound predicates. From there you learned how to add relationships to your entities by adding your rocket launches to lists. Core Data does a lot of the work for you by automatically fetching data associated with each relationship. You learned about transient properties and how they…
iOS & Swift

Asynchronously Loading Launches

…this episode, learn how to asynchronous load a large amount of information from the network so you can save it to Core Data
iOS & Swift

Introduction

Welcome back! At this point you should be quite familiar with how the basics of Core Data work. Now it’s time to dive into some more advanced topics. You’ll get the highlights here, and there are plenty of other resources available if you want to dive deeper. First…
iOS & Swift

Introduction

…there, it’s Josh and welcome to the second course in the iOS Beginner’s path for Core Data: Beyond the Basics! If you haven’t watched the first video, Core Data: Fundamentals, and don’t have previous experience with Core Data, I suggest going back and watching that first…
iOS & Swift

Conclusion

Wrap up this section by reviewing what you’ve learned about fetching from Core Data, and find out what’s coming next…
iOS & Swift

Modeling Relationships

Understand how to create relationships between entities in your object graphs to make your data model richer.
iOS & Swift

Displaying Launches

…those launches out of the persistent store and display them in a list so that you can see when they take place. Core Data retrieves records from the data store by means of a fetch request. Fetch requests, represented by the class NSFetchRequest, must contain an entity description or name…
iOS & Swift

Delete Rules

When you delete an instance of managed object in Core Data it matters how complex your object graph is. Let’s say your app just had RocketLaunches and nothing else. Then deleting a RocketLaunch is really simple and you can delete individual items without any concerns…
iOS & Swift

Adding Launches to Lists

Understand how to leverage the relationships in a model to display data without executing a fetch request.
iOS & Swift

Saving Launches with Batch Operations

…techniques you’ll use together to do this: one is batch operations, which you’ll learn about in this episode, and asynchronous Core Data, which you’ll learn about in the next episode. Batch insertions do just that - they insert a set of values into the database as a single…
iOS & Swift

Challenge - Displaying Tags

…actually a lot more straightforward. Since you’ve defined relationships between all of these entities you can leverage those relationships and let Core Data do the work automatically. In TagsView , add a property to initialize the view with tags. let tags: [Tag] You’ll display these tags in a list…
iOS & Swift

Compound Predicates

…isViewed", NSNumber(value: false)) Unlike sort descriptors where you can just pass many of them in to an array and Core Data figures it all out, you have to be a bit more specific with predicates because a predicate is a filtering condition. You want both of these predicates…
iOS & Swift

Saving Launches Concurrently

…doesn’t interfere with the main queue where user interactions take place? Long running or CPU intensive operations can be done in the background. Core Data has had support for background operations for a while now, but with iOS 15 they adopted the asynchronous API that was introduced throughout other…
iOS & Swift

Dynamically Adjust Sort Descriptors

…might want to provide your user the chance to sort the data in real time as they use your app. Luckily some improvements to Core Data in recent years has made that possible. Both sort descriptors and predicates for fetch requests are accessible outside of the initial fetch request declaration…
iOS & Swift

Challenge - Adding Tags

In this challenge add functionality to add tags to RocketLaunches by updating the data model.
iOS & Swift

Filtering Using Predicates

…where makes all the difference. If you were to swap the order it would fail. A %K , or key path specifier, tells Core Data that the value substituted here is a property on the fetched result and that the value of the property should equal the one specified using…