From 6fbf83af6356f7e0099dd4ada50cefaecf1b41b1 Mon Sep 17 00:00:00 2001 From: Bryan Keller Date: Thu, 16 Oct 2025 14:48:45 -0700 Subject: [PATCH] Fix section moves --- MagazineLayout/LayoutCore/ModelState.swift | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/MagazineLayout/LayoutCore/ModelState.swift b/MagazineLayout/LayoutCore/ModelState.swift index 020b9e8..e27f38b 100755 --- a/MagazineLayout/LayoutCore/ModelState.swift +++ b/MagazineLayout/LayoutCore/ModelState.swift @@ -685,11 +685,7 @@ final class ModelState { case let .sectionMove(initialSectionIndex, finalSectionIndex): sectionIndicesToDelete.append(initialSectionIndex) - var sectionModelToMove = sectionModelsBeforeBatchUpdates[initialSectionIndex] - // Item moves are handled separately, so we need to clear out existing items - for itemIndex in (0..