Skip to content

Commit

Permalink
Fix issue #14 There is the error in displaying pages
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjehpark committed Jan 23, 2017
1 parent 73c494e commit 44bf582
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 44bf582

Please sign in to comment.