Giter Club home page Giter Club logo

greedo-layout-for-ios's Introduction

Greedo Layout for iOS

Version License Platform

A library that computes what size the UICollectionView cells should be to display images in a variable height fixed aspect ratio grid.

image

Getting Started

Installation with CocoaPods

CocoaPods is a 3rd-party dependency manager for Swift and Objective-C projects. For more information, refer to the CocoaPods Getting Started Guide. Otherwise, you can install CocoaPods with the following command:

$ gem install cocoapods
Podfile

To integrate GreedoLayout into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
pod 'GreedoLayout'

Then, run the following command:

$ pod install

License

GreedoLayout is released under the MIT license. See LICENSE for details.

greedo-layout-for-ios's People

Contributors

anurlybayev avatar beltex avatar dennyhoang avatar jvillella avatar lfarah 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  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

greedo-layout-for-ios's Issues

Orientation issue

Hello
when i start in either portrait or landscape the layout is correct. When i rotate the device the images lose their insets

Large collection

Hello,

Have you tried this on a large collection, let say 15k images?
sizeForItemAtIndexPath being called for each image before even scrolling is a blocker.

Any work-around?
Cheers

Cannot install Pods for example project

Hi,
I was going to run the example project, but when tried to install pods, it complains about my permission to your repo:

[!] Error installing GreedoLayout
[!] /usr/bin/git clone [email protected]:500px/greedo-layout-for-ios.git /var/folders/hv/zpcskz697xlfv17ktr6vtmjh0000gp/T/d20160227-1232-zb0mvp --single-branch --depth 1

Cloning into '/var/folders/hv/zpcskz697xlfv17ktr6vtmjh0000gp/T/d20160227-1232-zb0mvp'...
Permission denied (publicly).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

no cell spacing at last row

Hello,
i use method computeSizesAtIndexPath() to calculate the size at sizeForItemAtindexPath, everything is fine but at last row there is now spacing between the cells. I am doing this on variable Height
screen shot 2017-01-06 at 11 38 24 am

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.