From 00f090a9c3a2eb0764b986d49a05cdc6e38d466b Mon Sep 17 00:00:00 2001 From: Paolo Leonardi Date: Tue, 23 Jul 2024 23:37:20 +0100 Subject: [PATCH] Fix animation warning --- Sources/WaterfallGrid/WaterfallGrid.swift | 2 +- .../WaterfallGridSample_visionOSApp.swift | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/WaterfallGrid/WaterfallGrid.swift b/Sources/WaterfallGrid/WaterfallGrid.swift index 6d0770e..70dcc7d 100644 --- a/Sources/WaterfallGrid/WaterfallGrid.swift +++ b/Sources/WaterfallGrid/WaterfallGrid.swift @@ -61,7 +61,7 @@ public struct WaterfallGrid: 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 diff --git a/WaterfallGridSample/WaterfallGridSample visionOS/WaterfallGridSample_visionOSApp.swift b/WaterfallGridSample/WaterfallGridSample visionOS/WaterfallGridSample_visionOSApp.swift index faf8f7b..c9faec7 100644 --- a/WaterfallGridSample/WaterfallGridSample visionOS/WaterfallGridSample_visionOSApp.swift +++ b/WaterfallGridSample/WaterfallGridSample visionOS/WaterfallGridSample_visionOSApp.swift @@ -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