Git Product home page Git Product logo

smwaterflowlayout's Introduction

SMWaterFlowLayout

SMWaterFlowLayout is a subclass of UICollectionViewFlowLayout, easy to use.

Requirements

  • iOS 8.0+
  • Xcode 9.0
  • Swift 4.0

Installation

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate SwipeMenu into your Xcode project using Carthage, specify it in your Cartfile:

github "harryzjm/SMWaterFlowLayout"

Run carthage to build the framework.

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

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

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'SMWaterFlowLayout'
end

Then, run the following command:

$ pod install

Source File

Simply add the file in Source directory into your project.

Usage

var lineCount: UInt  //to adjust line count

you must be follow UICollectionViewDelegateFlowLayout, to support height from

func collectionView(UICollectionView, layout: UICollectionViewLayout, sizeForItemAt: IndexPath)

and lineLength, you can easily get from SMWaterFlowLayout.lineLength. just look up demo.

Communication

  • If you need help, open an issue or send an email.
  • If you found a bug, open an issue or send an email.
  • If you'd like to ask a question,open an issue or send an email.
  • If you want to contribute, submit a pull request.

License

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

Author😬

Hares - https://github.com/harryzjm
Blog: https://harryzjm.github.io/
Email: [email protected]

smwaterflowlayout's People

Contributors

harryzjm avatar

Stargazers

 avatar Vasily Yatsevich avatar

Watchers

 avatar  avatar

smwaterflowlayout's Issues

Wrong offset on orientation change

For example, I have iPad, on portrait orientation, there are 3 lines, on landscape orientation are 4. When I scroll a bit from the beginning of the collection view and change orientation I see a big displacement of items and the far from the beginning I change orientation - the bigger displacement I have (shift if more than a screen)

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.