You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Pod/Classes/SwipeViewController.swift
+21-12Lines changed: 21 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,15 @@ public class SwipeViewController: UINavigationController, UIPageViewControllerDe
17
17
//SelectionBar
18
18
varselectionBarHeight=CGFloat(0)
19
19
varselectionBarWidth=CGFloat(0)
20
-
varselectionBarColor=UIColor()
20
+
varselectionBarColor=UIColor.blackColor()
21
21
22
22
//SwipeButtons
23
23
varoffset=CGFloat(40)
24
24
varbottomOfset=CGFloat(0)
25
-
varbuttonColor=UIColor.whiteColor()
26
-
varselectedButtonColor=UIColor.orangeColor()
25
+
varbuttonColor=UIColor.blackColor()
26
+
varselectedButtonColor=UIColor.greenColor()
27
27
varbuttonFont=UIFont.systemFontOfSize(18)
28
-
varcurrentPageIndex=2 //Besides keeping current page index it also determines what will be the first view
28
+
varcurrentPageIndex=1 //Besides keeping current page index it also determines what will be the first view
29
29
30
30
//NavigationBar
31
31
varnavigationBarColor=UIColor.whiteColor()
@@ -39,13 +39,14 @@ public class SwipeViewController: UINavigationController, UIPageViewControllerDe
39
39
varviewWidth=CGFloat()
40
40
varx=0asCGFloat //Distance between elements
41
41
varbarButtonItemWidth=CGFloat(8) //Extra offset when there is barButtonItem (and some default, you can check the value by pageController.navigationController?.navigationBar.topItem?.titleView?.layoutMargins.left
42
-
varnavigationBarHeight=0asCGFloat
42
+
varnavigationBarHeight=CGFloat(0)
43
43
varselectionBar=UIView()
44
44
varpageController=UIPageViewController()
45
45
vartotalButtonWidth=CGFloat(0)
46
46
varfinalPageIndex=-1
47
47
varindexNotIncremented=true
48
48
varpageScrollView=UIScrollView()
49
+
varanimationFinished=true
49
50
50
51
varselectionBarDelegate:SelectionBar?
51
52
@@ -97,6 +98,10 @@ public class SwipeViewController: UINavigationController, UIPageViewControllerDe
0 commit comments