Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebastianboldt/endless
🛣 A lightweight endless pageControl based on CAShapeLayers and UICollectionView
https://github.com/sebastianboldt/endless
airbnb endless-scroll infinite infinite-scroll instagram pageindicator pageindicatorview uipagecontrol
Last synced: 22 days ago
JSON representation
🛣 A lightweight endless pageControl based on CAShapeLayers and UICollectionView
- Host: GitHub
- URL: https://github.com/sebastianboldt/endless
- Owner: SebastianBoldt
- License: mit
- Created: 2019-04-04T14:50:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-25T16:44:25.000Z (about 4 years ago)
- Last Synced: 2024-09-18T07:31:10.457Z (about 2 months ago)
- Topics: airbnb, endless-scroll, infinite, infinite-scroll, instagram, pageindicator, pageindicatorview, uipagecontrol
- Language: Swift
- Homepage: https://www.sebastianboldt.com
- Size: 6.96 MB
- Stars: 23
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Endless
Endless is a lighweight endless page indicator based on UICollectionView and CAShapeLayers.
![Endless: Airbnb or Instragram like Page Indicator](https://github.com/SebastianBoldt/Endless/blob/master/Github/banner.png?raw=true)
## How to use
Create an Endless-Indicator in your storyboard or code without a width or height constraint.
'Endless' will calculate its intrinsic size at runtime for you. You just need to set the origin.```swift
class ViewController: UIViewController {
@IBOutlet weak private var indicator: Endless.Indicator!override func viewDidLoad() {
super.viewDidLoad()
let configuration = Endless.Configuration(numberOfDots: 20,
maxNumberOfDots: .seven,
selectedDotColor: .darkGray,
unselectedDotColor: .lightGray,
dotSize: 10,
spacing: 10)
indicator?.setup(with: configuration)
}
}
```## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Installation
Endless is available through CocoaPods. To install it, simply add the following line to your Podfile:
```ruby
pod 'Endless'
```## Author
Sebastian Boldt
www.sebastianboldt.com
## License
Endless is available under the MIT license. See the LICENSE file for more info.