File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ public class PagingMenuViewController: UIViewController {
110
110
return collectionView. indexPathForItem ( at: focusView. center) . flatMap ( collectionView. cellForItem)
111
111
}
112
112
113
+ public var currentFocusedIndex : Int ? {
114
+ return collectionView. indexPathForItem ( at: focusView. center) ? . row
115
+ }
116
+
113
117
public func cellForItem( at index: Int ) -> UICollectionViewCell ? {
114
118
return collectionView. cellForItem ( at: IndexPath ( item: index, section: 0 ) )
115
119
}
@@ -140,7 +144,6 @@ public class PagingMenuViewController: UIViewController {
140
144
if let index = index {
141
145
collectionView. performBatchUpdates ( nil ) { [ weak self] ( finish) in
142
146
guard let _self = self else { return }
143
- _self. focusView. layer. removeAllAnimations ( )
144
147
_self. scroll ( index: index, percent: 0 , animated: false )
145
148
completionHandler ? ( finish)
146
149
}
You can’t perform that action at this time.
0 commit comments