This lesson takes us through the somewhat convoluted method by which an app can select a photo from the user’s photo library or use the camera. Apparently, this is long-winding and convoluted because it’s not yet something SwiftUI can do and so we use a lot of UIKit code. This […]
CodeWithChris
With lesson 6 of module 7 of the CWC+ iOS Databases course, we see how to capture user input. Lesson 6 We have a new SwiftUI view for our input form: In our sub-view for the form, we have several TextFields bound to the properties sent from the previous call: […]
In lesson 5 of module 6 of the CWC+ iOS Databases course, Chris shows us how to add a search box to our RecipeListView.swift by using a filter with our Core Data. And then we have our SearchBarView sub-view: One of the problems this lesson revealed was that the on-screen […]
Continuing with enhancing our (old) Recipe App with Core Data, lesson 4 from module 6 of the CWC+ iOS Satabases Course takes us through some important changes. We previously got all of our data from our RecipeModel, re: And we displayed the data, thus – Now we’re using Core Data, […]
As we begin Lesson 3 of Module 6 of the CWC+ iOS Databases course, Chris highlights a potential future error for us to address. We copied our Persistence.swift file from another (new) project but, in order to ensure that the app runs correctly, we need to change a property in […]
Wow, that was pretty “interesting” to say the least! After a brief introductory video (lesson 1), lesson 2 of module 6 of the CWC+ iOS Database Course takes us down the rocky road of modifying our old iOS Foundations Recipe App ready to use Core Data. Before we start, there’s […]
I’ve always had a tough time explaining “relationships” between data tables when it comes to databases. Way back when I started using them with Lotus Approach, it was simply a matter of dragging one field from one table to a related field on another table and you could immediately see […]
We learn in lesson 4 of module 5 from the CWC+ iOS Database course, that we can sort our core data on fetch using sortDescriptors, which is an array of keys to sort plus a parameter for whether that sort should be in ascending order or not. In its simplest […]