Skip to content

Commit

Permalink
Fix animation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paololeonardi committed Jul 23, 2024
1 parent 5f44e30 commit 00f090a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/WaterfallGrid/WaterfallGrid.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public struct WaterfallGrid<Data, ID, Content>: View where Data : RandomAccessCo
.opacity(self.alignmentGuides[element[keyPath: self.dataId]] != nil ? 1 : 0)
}
}
.animation(self.loaded ? self.style.animation : nil)
.animation(self.loaded ? self.style.animation : nil, value: UUID())
}

// MARK: - Helpers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//
// Copyright © 2024 Paolo Leonardi. All rights reserved.
// Copyright © 2024 Paolo Leonardi.
//
// Licensed under the MIT license. See the LICENSE file for more info.
//

import SwiftUI
Expand Down

0 comments on commit 00f090a

Please sign in to comment.