Your Second iOS & SwiftUI App

Nov 4 2021 · Swift 5.5, iOS 15, Xcode 13

Part 2: Data Flow

18. Challenge: Micro-Review

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

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

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

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

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