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 a02664e commit f08b0e6Copy full SHA for f08b0e6
JXBanner.podspec
@@ -8,7 +8,7 @@
8
9
Pod::Spec.new do |s|
10
s.name = 'JXBanner'
11
- s.version = '0.3.0'
+ s.version = '0.3.1'
12
s.summary = 'A multifunctional framework for banner unlimited rollover diagrams'
13
14
# This description is used to generate tags and improve search results.
JXBanner/Classes/Banner/Banner/JXBanner.swift
@@ -381,6 +381,6 @@ UICollectionViewDelegate {
381
382
func indexOfIndexPath(_ indexPath : IndexPath)
383
-> Int {
384
- return Int(indexPath.item % pageCount)
+ return pageCount > 0 ? Int(indexPath.item % pageCount) : 0
385
}
386
0 commit comments