Adding our card contents
We are going to create the draft card next. The card has a lot of code, so we will break it up into small chunks. We will work backward and build each element; then, we will bring it all together. In this section, we will be writing a lot before we see the code compile. Be patient in this section, and I will let you know when we should see something in Swift Previews. Let's create the top of our card first.
Adding the top of the card
We work on the top of the card first by replacing // Add next step here
with the following code:
var topCard: some View { HStack { Image("pelicans").frame(height: 56) Spacer() Text(String(format: "%02d", 1)) .custom(font: .bold, size: 50) &...