From 44bf58259667995ff66f3111c9c2ebd249293447 Mon Sep 17 00:00:00 2001 From: yangjehpark Date: Mon, 23 Jan 2017 12:56:50 +0900 Subject: [PATCH] Fix issue #14 There is the error in displaying pages --- PagingView/PagingView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PagingView/PagingView.swift b/PagingView/PagingView.swift index d079e37..2476d55 100644 --- a/PagingView/PagingView.swift +++ b/PagingView/PagingView.swift @@ -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