Giter Club home page Giter Club logo

rxasdatasources's Introduction

RxASDataSources

Platforms License Carthage compatible CocoaPods compatible Travis

RxDataSources for AsyncDisplayKit/Texture: ASTableNode & ASCollectionNode.

Features

  • O(N) Diff algorithm from RxDataSources/Differentiator
  • Shared RxDataSources's APIs so you must learn only once.
  • Supports ASTableNode and ASCollectionNode
  • Support nodeBlockForRowAtIndexPath
  • More complex Example app

Requirements

  • iOS 8.0+
  • Xcode 9.0+
  • RxSwift 4.0 & Texture 2.5

Installation

CocoaPods

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

pod 'RxASDataSources'

Then, run the following command:

$ pod install

Carthage

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

github "RxSwiftCommunity/RxASDataSources"

Usage

Working with RxASDataSources will be very simple if you are familiar with RxDataSources:

typealias Section = SectionModel<String, Int>

let configureCell: ASTableSectionedDataSource<Section>.ConfigureCell = { (dataSource, tableNode, index, model) in
     let cell = ASTextCellNode()
     cell.text = model.info
     return cell
 }

 let animation = RowAnimation(insertAnimation: .automatic, reloadAnimation: .fade, deleteAnimation: .automatic)
 let dataSource = RxASTableSectionedReloadDataSource<Section>(animationConfiguration: animation, configureCell: configureCell)

 items
    .bind(to: tableNode.rx.items(dataSource: dataSource))
    .disposed(by: disposeBag)

For more advance usages, please follow RxDataSources and Example then simply replace your Views -> Nodes.

License

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

rxasdatasources's People

Contributors

dangthaison91 avatar fumito-ito avatar mongris avatar

Watchers

 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.