Configure Grid Content Mode
masterThe content mode determines how the grid behaves when its content exceeds the available space or when tracks are non-flexible.
.fill(Default): The grid attempts to fill the entire space provided by the parent. Tracks orthogonal to the flow direction are implicitly treated as.fr(1)..scroll: The grid content becomes scrollable in the growing direction. Tracks orthogonal to the flow direction are implicitly treated as.fit.
Grid(tracks: 3) {
// ... content
}
.gridContentMode(.scroll)