You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/AdvancedCollectionTableView/DiffableDataSource/NSCollectionView/CollectionViewDiffableDataSource+Delegate.swift
Copy file name to clipboardExpand all lines: Sources/AdvancedCollectionTableView/DiffableDataSource/NSCollectionView/CollectionViewDiffableDataSource.swift
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1052,20 +1052,18 @@ open class CollectionViewDiffableDataSource<Section: Identifiable & Hashable, El
1052
1052
1053
1053
- Parameters:
1054
1054
- dropInfo: The information about the drop.
1055
-
- newElements: The new elements to be inserted for the drop.
Copy file name to clipboardExpand all lines: Sources/AdvancedCollectionTableView/DiffableDataSource/NSOutlineView/OutlineViewDiffableDataSource.swift
+55-14Lines changed: 55 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -83,20 +83,19 @@ public class OutlineViewDiffableDataSource<ItemIdentifierType: Hashable>: NSObje
83
83
84
84
To use group items, enable group items in the snapshot you apply, by setting ``OutlineViewDiffableDataSourceSnapshot/groupItems`` `isEnabled` to `true`.
Applies the specified cell registration to configures and returnscellrow views for the outline view’s group items.
90
92
91
93
To use group items, enable group items in the snapshot you apply, by setting ``OutlineViewDiffableDataSourceSnapshot/groupItems`` `isEnabled` to `true`.
Copy file name to clipboardExpand all lines: Sources/AdvancedCollectionTableView/DiffableDataSource/NSOutlineView/Snapshot/OutlineChangeInstruction.swift
Copy file name to clipboardExpand all lines: Sources/AdvancedCollectionTableView/DiffableDataSource/NSOutlineView/Snapshot/OutlineViewDiffableDataSourceSnapshot.swift
+11-64Lines changed: 11 additions & 64 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,9 @@ public struct OutlineViewDiffableDataSourceSnapshot<ItemIdentifierType: Hashable
49
49
/// The identifiers of the items at the top level of the snapshot’s hierarchy.
/// Adds the specified items as child items of the specified parent item in the snapshot.
@@ -329,46 +330,6 @@ public struct OutlineViewDiffableDataSourceSnapshot<ItemIdentifierType: Hashable
329
330
items.forEach({nodes[$0]?.isExpanded =false})
330
331
}
331
332
332
-
// MARK: - Configurating group items
333
-
334
-
/*
335
-
/// Properties for group items.
336
-
public var groupItems = GroupItemProperties()
337
-
338
-
/// Properties for group items.
339
-
public struct GroupItemProperties {
340
-
/**
341
-
A Boolean value indicating whether the root items are displayed as group items.
342
-
343
-
If set to `true`, you can optionally provide custom group item cell views using `OutlineViewDiffableDataSource's` ``OutlineViewDiffableDataSource/groupItemCellProvider-swift.property`` and ``OutlineViewDiffableDataSource/applyGroupItemCellRegistration(_:)``.
344
-
*/
345
-
public var isEnabled: Bool = false
346
-
347
-
/**
348
-
A Boolean value indicating whether group items are always expanded and can't be collapsed.
349
-
350
-
The default value is `false` and indicates that group items can be expanded and collapsed like regular items.
351
-
352
-
If set to `true`, the items are always expanded and can't be collapsed.
353
-
354
-
*/
355
-
public var isAlwaysExpanded: Bool = false
356
-
357
-
/**
358
-
A Boolean value indicating whether the group items are floating.
A Boolean value indicating whether the root items are group items.
497
-
498
-
The default value is `false`. The group items are expanded and can't be collapsed.
499
-
500
-
If you set this value to `true`, the group rows display a disclosure button and you can manage the expansion state of the items via ``expand(_:)`` and ``collapse(_:)``.
501
-
*/
502
-
public var usesGroupItems: Bool = false
503
-
*/
504
-
505
-
/*
506
-
/**
507
-
A Boolean value indicating whether group items can be expanded/collapsed.
508
-
509
-
The default value is `false`. The group row items are expanded and can't be collapsed.
510
-
511
-
If you set this value to `true`, the group rows display a disclosure button and you can manage the expansion state of the items via ``expand(_:)`` and ``collapse(_:)``.
0 commit comments