diff --git a/Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift b/Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift index 216f0a3a5..a44e40df1 100644 --- a/Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift +++ b/Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift @@ -359,9 +359,9 @@ struct DynamicContainerInfo: StatefulRule, AsyncAttribute, ObservedAttr if needsUpdate { let totalCount = info.items.count let unusedCount = info.unusedCount - let inusedCount = totalCount - unusedCount + let inusedCount = totalCount &- unusedCount let removedCount = info.removedCount - let validCount = inusedCount - removedCount + let validCount = inusedCount &- removedCount if validCount < inusedCount { var slice = info.items[validCount..