We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b8635e commit 79bcf9fCopy full SHA for 79bcf9f
Sources/AdvancedCollectionTableView-iOS/Extensions/NSDiffableDataSourceSnapshot+.swift
@@ -10,6 +10,9 @@ import UIKit
10
extension NSDiffableDataSourceSnapshot {
11
/// A Boolean value indicating whether the snapshot is empty.
12
var isEmpty: Bool {
13
- numberOfItems == 0 && numberOfSections == 0
+ if numberOfItems > 0 {
14
+ return numberOfSections == 0
15
+ }
16
+ return true
17
}
18
0 commit comments