Skip to content

Commit

Permalink
fix: DynStack
Browse files Browse the repository at this point in the history
  • Loading branch information
ShlomoCode committed Jul 18, 2024
1 parent 43ece62 commit e633613
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DockDoor/Views/Hover Window/WindowPreviewHoverContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ struct WindowPreviewHoverContainer: View {
ZStack {
ScrollViewReader { scrollProxy in
ScrollView(orientationIsHorizontal ? .horizontal : .vertical, showsIndicators: false) {
DynStack(direction: orientationIsHorizontal ? .horizontal : .vertical, spacing: 16) {
ForEach(windows.indices, id: \.self) { index in
WindowPreview(windowInfo: windows[index], onTap: onWindowTap, index: index,
dockPosition: dockPosition, maxWindowDimension: maxWindowDimension,
bestGuessMonitor: bestGuessMonitor, uniformCardRadius: uniformCardRadius)
.id("\(appName)-\(index)")
}
}
.padding(14)
.onAppear {
Expand Down

0 comments on commit e633613

Please sign in to comment.