OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcc60d3
)
関数を直接引数に渡せる場合はtaling cloureを使わないようにした
author
masakih
<masakih@users.sourceforge.jp>
Thu, 12 Oct 2017 11:56:01 +0000
(20:56 +0900)
committer
masakih
<masakih@users.sourceforge.jp>
Thu, 12 Oct 2017 11:56:01 +0000
(20:56 +0900)
KCD/CollectionView.swift
patch
|
blob
|
history
diff --git
a/KCD/CollectionView.swift
b/KCD/CollectionView.swift
index
aa98c95
..
28b959f
100644
(file)
--- a/
KCD/CollectionView.swift
+++ b/
KCD/CollectionView.swift
@@
-122,7
+122,7
@@
extension CollectionView: QLPreviewPanelDataSource, QLPreviewPanelDelegate {
func previewPanel(_ panel: QLPreviewPanel!, previewItemAt index: Int) -> QLPreviewItem! {
- let selections = selectionIndexPaths.flatMap
{ item(at: $0) }
+ let selections = selectionIndexPaths.flatMap
(item(at:))
guard case 0..<selections.count = index else { return nil }
guard let item = selections[index] as? QLPreviewItem else { return nil}