In this section, we'll bundle up all the data we've received from our form and persist it down to our app so we can save the recipe and later view it via our main list or favorites. First, we'll look at how to convert the image we've taken into data so that we can successfully persist it to our UserDefaults and retrieve it again when necessary. We'll also cover how to use a fallback image if there is a problem accessing the image we've saved.
Once we've covered that, we'll use a helper function similar to the one we used for our favorites to both retrieve and save our recipe.