Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terenceLuffy/AppStoreStyleHorizontalScrollView
App store style horizontal scroll view
https://github.com/terenceLuffy/AppStoreStyleHorizontalScrollView
horizontalscrollview swift
Last synced: 3 months ago
JSON representation
App store style horizontal scroll view
- Host: GitHub
- URL: https://github.com/terenceLuffy/AppStoreStyleHorizontalScrollView
- Owner: terenceLuffy
- Created: 2014-06-05T02:31:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T20:02:49.000Z (about 6 years ago)
- Last Synced: 2024-04-24T14:51:35.047Z (6 months ago)
- Topics: horizontalscrollview, swift
- Language: Swift
- Size: 1.6 MB
- Stars: 660
- Watchers: 33
- Forks: 73
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ios - AppStoreStyleHorizontalScrollView - App store style horizontal scroll view. (UI / ScrollView)
- awesome-ios-star - AppStoreStyleHorizontalScrollView - App store style horizontal scroll view. (UI / ScrollView)
README
ASHorizontalScrollView
=================================App store style horizontal scroll view
![Swift Version](https://img.shields.io/badge/Swift-4.2-orange.svg)
![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg)
![Plaform](https://img.shields.io/badge/Platform-iOS-lightgrey.svg )
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg)](https://github.com/Carthage/Carthage)
[![Pod Version](https://img.shields.io/badge/Pod-1.1.0-6193DF.svg)](https://cocoapods.org/)It acts similar to apps sliding behaviours in App store. There are both Objective-C (do not update anymore since v1.3) and Swift version available and they perform exactly the same function, please find whichever you like.
![](/images/thumbookr1.gif) ![](/images/thumbookr2.gif)
Please note that the gif is not from the sample project.
Please note that from now on, the objective-C source won't be updated anymore as I have been using Swift for all my works totally.
### Installation
Install using one of the following options:1. Download the source from "Source" folder and drag into your project.
2. Using [CocoaPods](http://cocoapods.org)Swift
```ruby
pod 'ASHorizontalScrollView', '~> 1.5.2'
```Objective-C
```ruby
pod 'ASHorizontalScrollViewForObjectiveC', '~> 1.3'
```3. Using [Carthage](https://github.com/Carthage/Carthage)
Swift
```shell
github "terenceLuffy/AppStoreStyleHorizontalScrollView" ~> 1.5.2
```### How to use it?
Please check in [here](http://terenceluffy.github.io/how-to-use-ASHorizontalScrollView/) (updated for v1.5, please check sample project for usage)### Versions:
1.0: Initial release1.1: Change to adapt iOS 9 and Swift 2.1
1.2: Change C style code to Swift 3 compatible code, fix removeItemAtIndex last index crash bug
1.3: Supoort Swift 3 and XCode 8, add support to nib file
1.4: Add custom width when judging whether to scroll to next item; add support to all Apple devices screen size, now you can specified different mini margin, mini appear width and left margin for all sorts of screen sizes.
1.5: Introduce new properties to allow set number of items per screen for multiple screen sizes instead of setting minimum margins, as well as new properties to center subviews when items are not wide enough to use whole screen width
1.5.1: Add checking on items size before removing all items to avoid crash
1.5.2: Migrate to Swift 4.2 and add settings for iPhone X, Xs, XR and Xs Max landscape support
### iOS Supported Version
iOS 8.0 or above.### Authorization
The MIT License (MIT)
Copyright (C) 2014-Current WEIWEI CHENPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### Support
Having bugs? Please send me an email.