Skip to content

Commit

Permalink
Merge pull request #15 from yangjehpark/0.5.1
Browse files Browse the repository at this point in the history
Fix issue #14 There is the error in displaying pages
  • Loading branch information
KyoheiG3 authored Aug 5, 2017
2 parents 73c494e + 44bf582 commit d2a26c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PagingView/PagingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ extension PagingView {
}
}

for index in 0..<(allItemCount > 1 && infinite ? Position.count : allItemCount) {
for index in 0..<(allItemCount > (infinite ? 1 : Position.count) ? Position.count : allItemCount) {
let contentView = ContentView(frame: bounds)
contentView.position = Position(rawValue: index)
contentView.translatesAutoresizingMaskIntoConstraints = false
Expand Down

0 comments on commit d2a26c5

Please sign in to comment.