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: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ PuiSegmentedControl is a customizable for segmented control.
6
6
- Styling border, background, seperator etc.
7
7
- Animated segment change (Not working with different corner radius).
8
8
- Supported scroll when scrolling UIPageViewController (Same as above matter).
9
+
- Supported custom page view with PuiPageViewSegmentedControl.
9
10
- Written with Swift :)
10
11
11
12
## Installation
@@ -20,7 +21,7 @@ pod 'PuiSegmentedControl'
20
21
To integrate PuiSegmentedControl into your Xcode project using Carthage, specify it in your `Cartfile`:
21
22
22
23
```bash
23
-
github "kbakacak/PuiSegmentedControl"~>1.2.0
24
+
github "kbakacak/PuiSegmentedControl"~>2.0.0
24
25
```
25
26
26
27
Run `carthage update` to build the framework and drag the built `PuiSegmentedControl.framework` into your Xcode project.
@@ -60,9 +61,16 @@ open var isSeperatorActive: Bool = true // If the property is true, seperator wi
60
61
openvar items: [String] = [] // The titles of segments.
61
62
```
62
63
63
-
### Usage with UIPageViewController
64
+
### Usage with Page View
64
65
65
-
If you want to use with UIPageViewController, you need to use ``PuiPageViewSegmentedControl`` and set ``pageViewController`` property for required delegate. You can example ``PageViewController`` in example project. ``PuiPageViewSegmentedControl``is subclass of ``PuiSegmentedControl`` so you can use same properties above.
66
+
If you want to use with Page View, you need to use ``PuiPageViewSegmentedControl`` and set pages. You can example ``PageViewController`` in example project. If you want to working together with page view and segmented control then send segmented control property to page view configuration method. Threshold means selected segment change value with ratio that 0.8 means 80 percent.
0 commit comments