struct ContentView: View {
   @Environment(ApplicationData.self) private var appData

   var body: some View {
      ScrollView(.horizontal, showsIndicators: false) {
         LazyHStack(spacing: 0) {
            ForEach(appData.userData) { book in
               CellBook(book: book)
                  .containerRelativeFrame(.horizontal)
                  .scrollTransition(axis: .horizontal) { effect, phase in
                     effect.opacity(phase.isIdentity ? 1 : 0)
                  }
            }
         }
         .scrollTargetLayout()
      }
      .scrollTargetBehavior(.paging)
   }
}