import Adwaita import Foundation import LuminateCore struct MediaRow: View { var title: String var items: [Components.Schemas.BaseItemDto] @Binding var navigation: NavigationStack var onSeeAll: (() -> Void)? var view: Body { VStack(spacing: 16) { HStack { Text(title) .style("title-3") /// Poor man's `Spacer()` Bin() .hexpand() if let onSeeAll { Button("See All") { onSeeAll() } } } ScrollView { ForEach(items, horizontal: true) { item in HomePosterCell(item: item) .padding(16, .trailing) } } .vscrollbarPolicy(.never) .hscrollbarPolicy(.external) } } }