GithubHelp home page GithubHelp logo

applikeysolutions / gravityslider Goto Github PK

View Code? Open in Web Editor NEW
1.1K 18.0 89.0 711 KB

๐Ÿ”„ GravitySlider is a beautiful alternative to the standard UICollectionView flow layout.

Home Page: https://applikeysolutions.com

License: MIT License

Swift 93.08% Ruby 6.92%
swift uicollectionview flowlayout scroll ios xcode animation iphone iphone-x slider

gravityslider's Introduction

GravitySliderFlowLayout

Version License Platform Twitter Swift 3.0.x

Made by Applikey Solutions

Find this project on Dribbble

GravitySliderFlowLayout

Table of Contents

  1. Purpose
  2. Supported OS & SDK Versions
  3. Installation
  4. Usage
  5. Demo
  6. Release Notes
  7. Contact Us
  8. License

Purpose

GravitySlider is a lightweight animation flowlayot for UICollectionView completely written in Swift 4, compatible with iOS 11 and xCode 9.

Supported OS & SDK Versions

  • Supported build target - iOS 9.0

Installation

GravitySliderFlowLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'GravitySliderFlowLayout'

Usage

import GravitySliderFlowLayout

let gravitySliderLayout = GravitySliderFlowLayout(with: CGSize(width: 50, height: 50))
collectionView.collectionViewLayout = gravitySliderLayout

Demo

example-plain

Release Notes

Version 1.0

  • Release version.

Contact Us

You can always contact us via [email protected] We are open for any inquiries regarding our libraries and controls, new open-source projects and other ways of contributing to the community. If you have used our component in your project we would be extremely happy if you write us your feedback and let us know about it!

License

The MIT License (MIT)

Copyright ยฉ 2017 Applikey Solutions

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.

gravityslider's People

Contributors

applikey avatar ihahanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gravityslider's Issues

Mitmatched frame

`Hi ApplikeySolutions,
Unfortunately, I ran into a Problem with GravitySlider using Swift 4.1 on XCode 10.1:

TIMESTAMP MYAPP[4843:192324] Logging only once for UICollectionViewFlowLayout cache mismatched frame
TIMESTAMP MYAPP[4843:192324] UICollectionViewFlowLayout has cached frame mismatch for index path <NSIndexPath: 0xc3c3a5e22250291b> {length = 2, path = 0 - 1} - cached value: {{154.45696076278136, 67.006175491898148}, {152.38257137345681, 206.54764901620371}}; expected value: {{177.5, 51}, {176, 238.56}}
TIMESTAMP MYAPP[4843:192324] This is likely occurring because the flow layout subclass GravitySliderFlowLayout.GravitySliderFlowLayout is modifying attributes returned by UICollectionViewFlowLayout without copying them

I already tried things like copying the Attributes as shown on StackOverflow (https://stackoverflow.com/questions/31508153/warning-uicollectionviewflowlayout-has-cached-frame-mismatch-for-index-path-ab), but it didn't work out.

Any ideas / help on that?

Thank you in advance!
-Patrick

Paging needed

When scrolling horizontally, the speed of scrolling is too fast, and there's no pagination. Is there some way to slow the scrolling speed or adding paging ?

Update

Hey firstly it looks great but can you keep on updating the library ?

Swift 4 Support and deprecated fabs.

Hey guys, just to make sure this pod works on Swift 4 you need to update this.

UICollectionViewScrollDirection to UICollectionView.ScrollDirectionand change fabs to abs.

Regards.

Next cell

How can I tell collectionview go to next in this library ? Thank you

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.