From the course: iOS 14 Development Essential Training
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Solution: Lists
(upbeat music) - [Narrator] So, here's my solution to the challenge. And as always, it might be different from your solution. Let's start out by looking at the easy mode for the challenge. All you have to do is find our text in our detail view, change the string high to data.detail or data.title, it doesn't matter. Run the live preview. Hit the button and you should see that data coming from our data model. Now, just for fun, let's do hard mode as well. You going to save this file. I'm going to press Shift + CMD + O to open our data model quickly. To type data model, and then press return to have xcode open the file for you. And then right below var detail, create a new variable called popover text with capital T: string with a capital S. So now, whenever we create one of these we need to add that additional parameter. Xcode will actually provide this for us if we click these error message and hit fix. So, let's…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.