Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
ASCollectionView
Commits
91ac3c15
Commit
91ac3c15
authored
5 years ago
by
Toby Brennan
Browse files
Options
Download
Email Patches
Plain Diff
Only highlight if singleSelection action is defined
parent
cae1d3f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/ASCollectionView/Implementation/ASTableView.swift
+5
-0
Sources/ASCollectionView/Implementation/ASTableView.swift
with
5 additions
and
0 deletions
+5
-0
Sources/ASCollectionView/Implementation/ASTableView.swift
+
5
-
0
View file @
91ac3c15
...
...
@@ -468,6 +468,11 @@ public struct ASTableView<SectionID: Hashable>: UIViewControllerRepresentable, C
}
return
indexPath
}
public
func
tableView
(
_
tableView
:
UITableView
,
shouldHighlightRowAt
indexPath
:
IndexPath
)
->
Bool
{
guard
!
isEditing
else
{
return
false
}
return
parent
.
sections
[
safe
:
indexPath
.
section
]?
.
dataSource
.
allowSingleSelection
??
false
}
public
func
tableView
(
_
tableView
:
UITableView
,
itemsForBeginning
session
:
UIDragSession
,
at
indexPath
:
IndexPath
)
->
[
UIDragItem
]
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets