Skip to content

Commit 36dd382

Browse files
authored
Merge pull request #11 from ShapeGames/master
Updates git submodule.
2 parents 46e6b7b + 6f5fa6d commit 36dd382

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "ra1028/DifferenceKit" "1.1.3"
1+
github "ra1028/DifferenceKit" "1.1.4"

Carthage/Checkouts/DifferenceKit

Submodule DifferenceKit updated 48 files

Examples/Example-iOS/InsertionSortViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ final class InsertionSortViewController: UIViewController {
107107
}
108108

109109
func randmize(animated: Bool) {
110-
let snapshot = DiffableDataSourceSnapshot<Section, Node>()
110+
var snapshot = DiffableDataSourceSnapshot<Section, Node>()
111111
let rows = Int(collectionView.bounds.height / nodeSize.height) - 1
112112
let columns = Int(collectionView.bounds.width / nodeSize.width)
113113

@@ -126,7 +126,7 @@ final class InsertionSortViewController: UIViewController {
126126
}
127127

128128
var isNextSortRequired = false
129-
let snapshot = dataSource.snapshot()
129+
var snapshot = dataSource.snapshot()
130130

131131
for section in snapshot.sectionIdentifiers where !section.isSorted {
132132
section.sortNext()

Examples/Example-iOS/MountainsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class MountainsViewController: UIViewController {
5050
.filter { $0.contains(filter) }
5151
.sorted { $0.name < $1.name }
5252

53-
let snapshot = DiffableDataSourceSnapshot<Section, Mountain>()
53+
var snapshot = DiffableDataSourceSnapshot<Section, Mountain>()
5454
snapshot.appendSections([.main])
5555
snapshot.appendItems(mountains)
5656
dataSource.apply(snapshot)

Examples/Example-iOS/TopViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class TopViewController: UIViewController {
4242
}
4343

4444
func reset() {
45-
let snapshot = DiffableDataSourceSnapshot<Section, Item>()
45+
var snapshot = DiffableDataSourceSnapshot<Section, Item>()
4646
snapshot.appendSections([.main])
4747
snapshot.appendItems([.mountains, .insertionSort])
4848
dataSource.apply(snapshot)

0 commit comments

Comments
 (0)