Your Second iOS & SwiftUI App

Nov 4 2021 Swift 5.5, iOS 15, Xcode 13

Part 2: Data Flow

18. Challenge: Micro-Review

Lesson Complete

Play Next Lesson
Next
Save for later
About this episode
See versions

See course reviews

See forum comments
Cinema mode Mark as Complete Download course materials
Previous episode: 17. Observable Objects Next episode: 19. Conclusion

This video was last updated on Nov 4 2021

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.

In the previous episode, you were able to get one of two new book properties displaying in your UI: the “read me” bookmark.

      VStack {
        TextField("Review…", text: <#T##Binding<String>#>)

        Book.Image(
TextField("Review…", text: $book.microReview)
      VStack {
        Divider()
          .padding(.vertical)
        TextField("Review…", text: $book.microReview)
        Divider()
          .padding(.vertical)

        Book.Image(
        )
        
        VStack {
          TitleAndAuthorStack(
            book: book,
            titleFont: .title2,
            authorFont: .title3
          )
          .lineLimit(1)

          Text(book.microReview)
        }

        Spacer()
            authorFont: .title3
          )

          Text(book.microReview)
        }
        .lineLimit(1)

        Spacer()
    .init(title: "Bosch", author: "Laurinda Dixon"🟩, microReview: "Earthily Delightful."),
    .init(title: "Dare to Lead", author: "Brené Brown"),
    .init(title: "Blasting for Optimum Health Recipe Book", author: "NutriBullet"),
    .init(title: "Drinking with the Saints", author: "Michael P. Foley"🟩, microReview: "One of Ozma's favorites 😻"),
    .init(title: "A Guide to Tea", author: "Adagio Teas"),
    .init(title: "The Life and Complete Work of Francisco Goya", author: "P. Gassier & J Wilson"🟩, microReview: "Book too large for a micro review!"),
            Text(book.microReview)
              .font(.subheadline)
          }
              .font(.subheadline)
              .foregroundColor(.secondary)
          }
            authorFont: .title3
          )

          Spacer()
          Text(book.microReview)
        }
            authorFont: .title3
          )

          if !book.microReview.isEmpty {
            Spacer()
            Text(book.microReview)
          }
        }
        .lineLimit(1)

@ObservedObject var book: Book