https://github.com/dragoncherry/hfswipeview
Infinite Swipe View for iOS written in Swift
https://github.com/dragoncherry/hfswipeview
circular horizontal infinite looping scrollview swipeview
Last synced: 22 days ago
JSON representation
Infinite Swipe View for iOS written in Swift
- Host: GitHub
- URL: https://github.com/dragoncherry/hfswipeview
- Owner: DragonCherry
- License: mit
- Created: 2016-07-16T07:06:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T03:26:22.000Z (almost 5 years ago)
- Last Synced: 2025-04-29T23:00:04.559Z (22 days ago)
- Topics: circular, horizontal, infinite, looping, scrollview, swipeview
- Language: Swift
- Homepage:
- Size: 3.41 MB
- Stars: 89
- Watchers: 3
- Forks: 30
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This repository won't updated anymore. Due to structural problem(not based on auto layout & unstable when orientation change), I'm not recommend this source to use for infinite cells. Maybe I'll create a new, better and cleaner solution for solving complex infinite cell problems but not here!
# HFSwipeView
[](https://travis-ci.org/DragonCherry/HFSwipeView)
[](http://cocoapods.org/pods/HFSwipeView)
[](http://cocoapods.org/pods/HFSwipeView)
[](http://cocoapods.org/pods/HFSwipeView)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
If you wanna check how it works, click link below and press - "Tap to Play".
https://www.cocoacontrols.com/controls/hfswipeviewA swipe view loops through multiple view items infinitely, with UIPageControl attached. It's very similar to ViewPager from android but it also supports circulation between multiple views. In circulating mode(infinite loop), it will automatically locates current view at the center of swipe view.
Any advice and suggestions will be greatly appreciated.
## Features
- supports circulating mode(inifinite loop)
- supports auto-align selected cell on center of the view
- supports auto-slide(in circulating mode only) based on given NSTimeInterval, you can use it like banner-style view.
- supports magnifying mode(magnifies selected-center cell)
- supports auto shrinking UIPageControl at the bottom area of the HFSwipeView
## Requirements
Xcode8, Swift 3
## Version
for Swift 2.#, refer to version 1.0.0
after Swift 3.#, refer to development/master branch or last released version.
## Installation
HFSwipeView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "HFSwipeView"
```## Author
DragonCherry, [email protected]
## License
HFSwipeView is available under the MIT license. See the LICENSE file for more info.