Skip to content

Commit d2367ac

Browse files
committed
Enabled both forward and reverse navigation constraints on the cards page layouter by default
1 parent 305383f commit d2367ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SCPageViewController.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'SCPageViewController'
3-
s.version = '2.0.3'
3+
s.version = '2.0.4'
44
s.platform = :ios
55
s.ios.deployment_target = '5.0'
66

SCPageViewController/Layouters/SCCardsPageLayouter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ - (instancetype)init
2121
self.numberOfPagesToPreloadBeforeCurrentPage = 3;
2222
self.numberOfPagesToPreloadAfterCurrentPage = 3;
2323

24-
self.navigationConstraintType = SCPageLayouterNavigationContraintTypeNone;
24+
self.navigationConstraintType = SCPageLayouterNavigationContraintTypeForward | SCPageLayouterNavigationContraintTypeReverse;
2525

2626
self.pagePercentage = 0.5f;
2727
}

0 commit comments

Comments
 (0)