All Projects → zzjzz9266a → Zjflexiblelayout

zzjzz9266a / Zjflexiblelayout

Licence: mit
custom waterfall flow based on UICollectionView

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Zjflexiblelayout

Koyomi
Simple customizable calendar component in Swift 📆
Stars: ✭ 716 (+817.95%)
Mutual labels:  customizable, uicollectionview
Expandable Collection View Kit
🗂 Expandable, hierarchical, flexible, declarative UICollectionView with diffable data sources & SwiftUI-like tree items builder [Swift 5.1, iOS & iPadOS 13].
Stars: ✭ 69 (-11.54%)
Mutual labels:  uicollectionview
Chalk
Chalk is a high quality, completely customizable, performant and 100% free Jekyll blog theme.
Stars: ✭ 987 (+1165.38%)
Mutual labels:  customizable
Bmlongpressdragcellcollectionview
🎉 🎉 🎉 🎉 🎉 让你轻松实现类似支付宝的拖拽重排功能, 支持各种自定义操作。
Stars: ✭ 1,090 (+1297.44%)
Mutual labels:  uicollectionview
Allkit
🛠 Async List Layout Kit
Stars: ✭ 40 (-48.72%)
Mutual labels:  uicollectionview
Mkcolorpicker
ColorPicker is a fantastic color picker 🎨 written in Swift. Developers can use our color picker as is or they can customize it with all the available features
Stars: ✭ 59 (-24.36%)
Mutual labels:  customizable
Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-53.85%)
Mutual labels:  customizable
Drcollectionviewtablelayout Ios
UICollectionView 2d-table / grid / spreadsheet layout
Stars: ✭ 74 (-5.13%)
Mutual labels:  uicollectionview
Discord Plus
A sleek, customizable Discord theme.
Stars: ✭ 65 (-16.67%)
Mutual labels:  customizable
Teamcity Theatre
👀 Monitor those builds! 🔨 (No TeamCity plugin needed!)
Stars: ✭ 56 (-28.21%)
Mutual labels:  customizable
Swiftypagecontroller
SwiftyPageController will be helpful to use in many pages controller
Stars: ✭ 55 (-29.49%)
Mutual labels:  customizable
Pagingkit
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries.
Stars: ✭ 1,030 (+1220.51%)
Mutual labels:  uicollectionview
Mlmanager
A modern, easy and customizable app manager for Android with Material Design
Stars: ✭ 1,118 (+1333.33%)
Mutual labels:  customizable
Ssplaceholdertableview
SSPlaceholderTableView is Placeholder Library for different different state wise placeHolder for UITableView/UICollectionView. Check https://www.cocoacontrols.com/controls/ssplaceholdertableview
Stars: ✭ 39 (-50%)
Mutual labels:  uicollectionview
Scorehud
An event driven, highly customizable plugin to add Scoreboards on your Minecraft Bedrock Server.
Stars: ✭ 69 (-11.54%)
Mutual labels:  customizable
Tangramkit
TangramKit is a powerful iOS UI framework implemented by Swift. It integrates the functions with Android layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView
Stars: ✭ 984 (+1161.54%)
Mutual labels:  uicollectionview
Mapit
An easy way to embed google maps in your site.
Stars: ✭ 54 (-30.77%)
Mutual labels:  customizable
Candybar
Dashboard for Android Icon Packs. Supported by the community.
Stars: ✭ 58 (-25.64%)
Mutual labels:  customizable
Collectionviewwithpaging Simplerexample
A simple example of how to build a horizontal UICollectionView with peeking pages.
Stars: ✭ 77 (-1.28%)
Mutual labels:  uicollectionview
React Native True Sight
📱 A cross-platform (Android / iOS) video player with customizable controls for React Native.
Stars: ✭ 73 (-6.41%)
Mutual labels:  customizable

中文简介


ZJFlexibleLayout is a simple UI component of flexible waterfall layout for iOS platform.

Features

  • [x] Easy To Use
  • [x] Flexible In Any Layout Including WaterFall
  • [x] Written All By Swift

Requirements

  • iOS 8.0+
  • Xcode 8.3+
  • Swift 3.1+

Installation

CocoaPods

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

$ gem install cocoapods

CocoaPods 1.1+ is required to build ZJFlexibleLayout.

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

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

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

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 ZJFlexibleLayout into your Xcode project using Carthage, specify it in your Cartfile:

github "zzjzz9266a/ZJFlexibleLayout"

Run carthage update to build the framework and drag the built ZJFlexibleLayout.framework into your Xcode project.

Usage

1、Create a new ZJFlexibleLayout and set delegate, set this layout to UICollectionView:

let layout = ZJFlexibleLayout(delegate: self)
layout.collectionHeaderView = headerView    //could be nil
collectionView = UICollectionView(frame: kScreenBounds, collectionViewLayout: layout)

2、Implement the protocol ZJFlexibleDataSource, just implement the first two methods:

protocol ZJFlexibleLayoutDataSource: class{

    //控制对应section的瀑布流列数
    func numberOfCols(at section: Int) -> Int
    //控制每个cell的尺寸,实质上就是获取宽高比
    func sizeOfItemAtIndexPath(at indexPath : IndexPath) -> CGSize
    //控制瀑布流cell的间距
    func spaceOfCells(at section: Int) -> CGFloat
    //section 内边距
    func sectionInsets(at section: Int) -> UIEdgeInsets
    //每个section的header尺寸
    func sizeOfHeader(at section: Int) -> CGSize
    //每个cell的额外高度
    func heightOfAdditionalContent(at indexPath : IndexPath) -> CGFloat
}

Example

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].