Coder Social home page Coder Social logo

miraclebg / appstorestylehorizontalscrollview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from terenceluffy/appstorestylehorizontalscrollview

0.0 3.0 0.0 1.64 MB

App store style horizontal scroll view

Ruby 10.17% Objective-C 38.52% Swift 51.31%

appstorestylehorizontalscrollview's Introduction

ASHorizontalScrollView

App store style horizontal scroll view Swift Version License MIT Plaform Carthage compatible Pod Version

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.

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

    Swift

    pod 'ASHorizontalScrollView', '~> 1.5.1'

    Objective-C

    pod 'ASHorizontalScrollViewForObjectiveC', '~> 1.3'
  3. Using Carthage

    Swift

    github "terenceLuffy/AppStoreStyleHorizontalScrollView" ~> 1.5.1

How to use it?

Please check in here (updated for v1.5, please check sample project for usage)

Versions:

1.0: Initial release

1.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

iOS Supported Version

iOS 8.0 or above.

Authorization

The MIT License (MIT) Copyright (C) 2014-2017 WEIWEI CHEN

Permission 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.

appstorestylehorizontalscrollview's People

Contributors

diogoguimaraes avatar miraclebg avatar terenceluffy avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.