Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aryaxt/ScrollPager
A scroll pager that displays a list of tabs (segments) and manages paging between given views
https://github.com/aryaxt/ScrollPager
Last synced: 6 days ago
JSON representation
A scroll pager that displays a list of tabs (segments) and manages paging between given views
- Host: GitHub
- URL: https://github.com/aryaxt/ScrollPager
- Owner: aryaxt
- License: other
- Created: 2015-02-23T02:30:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T04:49:59.000Z (about 4 years ago)
- Last Synced: 2024-11-23T09:07:52.959Z (20 days ago)
- Language: Swift
- Homepage:
- Size: 253 KB
- Stars: 509
- Watchers: 12
- Forks: 78
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
- awesome-ios - ScrollPager - A scroll pager that displays a list of tabs (segments) and manages paging between given views (UI / Tab Bar)
- awesome-ios-star - ScrollPager - A scroll pager that displays a list of tabs (segments) and manages paging between given views (UI / Tab Bar)
README
# ScrollPager [![Version](http://cocoapod-badges.herokuapp.com/v/ScrollPager/badge.png)](http://cocoadocs.org/docsets/ScrollPager)
A scroll pager similar to the one in Flipboard. The control creates a tabbar given a title or an image, and has the option of connecting to a UIScrollView to automatically present given views and manage paging between these views![alt tag](https://raw.github.com/aryaxt/ScrollPager/master/scrollPager.png)
## Usage:
Drag and drop a UIView into storyboard or xib.
OPTIONAL: If you like to use a scroll view assign the outlet to a scrollView.
### Tab with text
```swift
scrollPager.addSegmentsWithTitles(["Home", "Public Feed", "Profile"])
```### Tab with images and views (will automatically add paging to scrollview and displays the views accordingly)
```swift
scrollPager.addSegmentsWithTitlesAndViews([
("Home", firstView),
("Public Feed", secondView),
("Profile", thirdView)
])
```### Tab with images
```swift
secondScrollPager.addSegmentsWithImages([
UIImage(named: "envelope")!,
UIImage(named: "home")!
])
```### Tab with images and views (will automatically add paging to scrollview and displays the views accordingly)
```swift
scrollPager.addSegmentsWithImagesAndViews([
(UIImage(named: "envelope")!, firstView),
(UIImage(named: "home")!, secondView),
(UIImage(named: "anotherImage")!, thirdView)
])
```