Skip to content

Commit a0849f7

Browse files
committed
updated
1 parent 710b1a2 commit a0849f7

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

Sources/AdvancedCollectionTableView/DiffableDataSource/NSOutlineView/Snapshot/OutlineChangeInstruction.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extension OutlineViewDiffableDataSourceSnapshot {
6767
}
6868
return instructions
6969
}
70-
var instructions = calculateSteps(from: rootItems, to: newSnapshot.rootItems)
70+
let instructions = calculateSteps(from: rootItems, to: newSnapshot.rootItems)
7171
return instructions
7272
}
7373
}
@@ -78,11 +78,11 @@ extension NSOutlineView {
7878
beginUpdates()
7979
for instruction in currentSnapshot.instructions(forMorphingTo: snapshot) {
8080
switch instruction {
81-
case .insert(let item, let index, let parent):
81+
case .insert(_, let index, let parent):
8282
insertItems(at: IndexSet(integer: index), inParent: parent, withAnimation: animation)
83-
case .remove(let item, let index, let parent):
83+
case .remove(_, let index, let parent):
8484
removeItems(at: IndexSet(integer: index), inParent: parent, withAnimation: animation)
85-
case .move(let item, let from, let fromParent, let to, let toParent):
85+
case .move(_, let from, let fromParent, let to, let toParent):
8686
moveItem(at: from, inParent: fromParent, to: to, inParent: toParent)
8787
}
8888
}
@@ -94,7 +94,7 @@ extension NSOutlineView {
9494
let oldExpanded = Set(currentSnapshot.nodes.filter { $0.value.isExpanded }.map { $0.key } + currentSnapshot._groupItems)
9595
let newExpanded = Set(snapshot.nodes.filter { $0.value.isExpanded }.map { $0.key } + snapshot._groupItems)
9696
let collapse = Array(oldExpanded.subtracting(newExpanded))
97-
var expand = Array(newExpanded.subtracting(oldExpanded))
97+
let expand = Array(newExpanded.subtracting(oldExpanded))
9898
collapse.forEach({ animator().collapseItem($0) })
9999
expand.forEach({ animator().expandItem($0) })
100100
}

Sources/AdvancedCollectionTableView/Documentation/AdvancedCollectionTableView.docc/Extensions/AppKit Extensions/NSTableView/NSTableView+.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ Extensions for `NSTableView`.
1919
- ``AppKit/NSTableView/RowRegistration``
2020
- ``AppKit/NSTableView/makeRowView(using:forRow:item:)``
2121

22-
### Creating section header views
23-
24-
- ``AppKit/NSTableView/SectionHeaderRegistration``
25-
- ``AppKit/NSTableView/makeSectionHeaderView(using:row:section:)``
26-
2722
### Reloading content
2823

2924
- ``AppKit/NSTableView/reconfigureRows(at:)``

Sources/AdvancedCollectionTableView/Documentation/AdvancedCollectionTableView.docc/Extensions/AppKit Extensions/NSTableView/NSTableViewDiffableDataSource+.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Extensions for `NSTableViewDiffableDataSource`.
1313

1414
### Creating Section Views
1515

16-
- ``applySectionHeaderViewRegistration(_:)``
16+
- ``AppKit/NSTableViewDiffableDataSource/applySectionHeaderViewRegistration(_:)``
1717

1818
### Updating data
1919

Sources/AdvancedCollectionTableView/Documentation/AdvancedCollectionTableView.docc/Extensions/DiffableDataSource/OutlineViewDiffableDataSource/OutlineViewDiffableDataSource.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
### Creating group row views.
1414

15-
- ``groupRowCellProvider-swift.property``
16-
- ``GroupRowCellProvider-swift.typealias``
17-
- ``applyGroupRowCellRegistration(_:)``
15+
- ``groupItemCellProvider-swift.property``
16+
- ``GroupItemCellProvider-swift.typealias``
17+
- ``applyGroupItemCellRegistration(_:)``
1818

1919
### Creating row views
2020

0 commit comments

Comments
 (0)