@@ -26,7 +26,7 @@ For Swift Package Manager add the following package to your Package.swift:
2626
2727Carthage is also supported, add FormView by adding to Cartfile:
2828```
29- github "fredyshox/PageView" ~> 1.3.1
29+ github "fredyshox/PageView" ~> 1.3.2
3030```
3131
3232## Demo
@@ -60,14 +60,15 @@ VPageView {
6060By default PageView fills all the available area, you can constrain it's size using ` .frame(width:, height:) ` View modifier.
6161
6262You can customize the styling of page control component by passing ` PageControlTheme ` . Customizable properties:
63- * background color
64- * active page dot color
65- * inactive page dot color
66- * size of page dot
67- * spacing between dots
68- * padding of page control
69- * page control offset
70- * alignment of page control component (default: bottom-center for horizontal axis, center-leading for vertical axis)
63+ * ` backgroundColor `
64+ * ` dotActiveColor ` : active page dot color
65+ * ` dotInactiveColor ` : inactive page dot color
66+ * ` dotSize ` : size of page dot
67+ * ` spacing ` : spacing between dots
68+ * ` padding ` : padding of page control
69+ * ` xOffset ` : page control x-axis offset, used only in vertical mode
70+ * ` yOffset ` : page control y-axis offset, used only in horizontal mode
71+ * ` alignment ` : alignment of page control component (default: bottom-center in horizontal mode, center-leading in vertical mode)
7172
7273``` swift
7374let theme = PageControlTheme (
@@ -77,7 +78,8 @@ let theme = PageControlTheme(
7778 dotSize : 10.0 ,
7879 spacing : 12.0 ,
7980 padding : 5.0 ,
80- offset : 8.0 ,
81+ xOffset : 8.0 ,
82+ yOffset : -8.0 ,
8183 alignment : Alignment (horizontal : .trailing , vertical : .top )
8284)
8385...
0 commit comments