Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Nov 21, 2024
1 parent 982b9fa commit a29af5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/CollectionView/SelectionState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public enum SelectionStateContainers {

public let selected: Set<Identifier>

public let canMoreSelect: Bool
public let canSelectMore: Bool

private let onChange: (_ selected: Identifier, _ action: SelectAction) -> Void

Expand All @@ -139,7 +139,7 @@ public enum SelectionStateContainers {
onChange: @escaping (_ selected: Identifier, _ action: SelectAction) -> Void
) {
self.selected = selected
self.canMoreSelect = canMoreSelect
self.canSelectMore = canMoreSelect
self.onChange = onChange
}

Expand All @@ -151,7 +151,7 @@ public enum SelectionStateContainers {
if isSelected(for: id) {
return true
}
return canMoreSelect
return canSelectMore
}

public func update(isSelected: Bool, for identifier: Identifier) {
Expand Down

0 comments on commit a29af5b

Please sign in to comment.