From 544d9855ac5d558faa0728d46f41b8b7401318fd Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 9 Dec 2019 16:29:38 +0100 Subject: [PATCH 1/2] Updates git submodule. --- Cartfile.resolved | 2 +- Carthage/Checkouts/DifferenceKit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cartfile.resolved b/Cartfile.resolved index d98f6bc..9ba02bd 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1 +1 @@ -github "ra1028/DifferenceKit" "1.1.3" +github "ra1028/DifferenceKit" "1.1.4" diff --git a/Carthage/Checkouts/DifferenceKit b/Carthage/Checkouts/DifferenceKit index 4eb31f8..bf0488b 160000 --- a/Carthage/Checkouts/DifferenceKit +++ b/Carthage/Checkouts/DifferenceKit @@ -1 +1 @@ -Subproject commit 4eb31f8e85e4cb13732f9664d6e01e507cd592a0 +Subproject commit bf0488b4683fbe113e8db9cf4dcf0d265ce39cfa From 6f5fa6dc1ac8f6cc099e0d9e04e77f1844f64aee Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 9 Dec 2019 16:38:29 +0100 Subject: [PATCH 2/2] Fixes compile errors. --- Examples/Example-iOS/InsertionSortViewController.swift | 4 ++-- Examples/Example-iOS/MountainsViewController.swift | 2 +- Examples/Example-iOS/TopViewController.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/Example-iOS/InsertionSortViewController.swift b/Examples/Example-iOS/InsertionSortViewController.swift index 9b5855f..08f7203 100644 --- a/Examples/Example-iOS/InsertionSortViewController.swift +++ b/Examples/Example-iOS/InsertionSortViewController.swift @@ -107,7 +107,7 @@ final class InsertionSortViewController: UIViewController { } func randmize(animated: Bool) { - let snapshot = DiffableDataSourceSnapshot() + var snapshot = DiffableDataSourceSnapshot() let rows = Int(collectionView.bounds.height / nodeSize.height) - 1 let columns = Int(collectionView.bounds.width / nodeSize.width) @@ -126,7 +126,7 @@ final class InsertionSortViewController: UIViewController { } var isNextSortRequired = false - let snapshot = dataSource.snapshot() + var snapshot = dataSource.snapshot() for section in snapshot.sectionIdentifiers where !section.isSorted { section.sortNext() diff --git a/Examples/Example-iOS/MountainsViewController.swift b/Examples/Example-iOS/MountainsViewController.swift index a0e8150..5806939 100644 --- a/Examples/Example-iOS/MountainsViewController.swift +++ b/Examples/Example-iOS/MountainsViewController.swift @@ -50,7 +50,7 @@ final class MountainsViewController: UIViewController { .filter { $0.contains(filter) } .sorted { $0.name < $1.name } - let snapshot = DiffableDataSourceSnapshot() + var snapshot = DiffableDataSourceSnapshot() snapshot.appendSections([.main]) snapshot.appendItems(mountains) dataSource.apply(snapshot) diff --git a/Examples/Example-iOS/TopViewController.swift b/Examples/Example-iOS/TopViewController.swift index c0c067f..d983261 100644 --- a/Examples/Example-iOS/TopViewController.swift +++ b/Examples/Example-iOS/TopViewController.swift @@ -42,7 +42,7 @@ final class TopViewController: UIViewController { } func reset() { - let snapshot = DiffableDataSourceSnapshot() + var snapshot = DiffableDataSourceSnapshot() snapshot.appendSections([.main]) snapshot.appendItems([.mountains, .insertionSort]) dataSource.apply(snapshot)