Swiftpack.co - Package - OhKanghoon/RxDataSources-Texture
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Swift Build Status Version License Platform

Usage

  1. Turn your data into an Observable sequence
  2. Bind the data to the tableNode / collectionNode using :
  • rx.items(dataSource:protocol<RxASTableDataSourceType, ASTableDataSource>)
let dataSource = RxASTableSectionedReloadDataSource<SectionModel<String, Int>>(
    configureCellBlock: { (_, _, _, num) in
        return {
            let cell = ASTextCellNode()
            cell.text = "\(num)"
            return cell
        }
})

Observable.just([SectionModel(model: "title", items: [1, 2, 3])])
    .bind(to: tableNode.rx.items(dataSource: dataSource))
    .disposed(by: disposeBag)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod 'RxDataSources-Texture'

Development

$ make project
$ open RxDataSources-Texture.xcworkspace

Author

OhKanghoon, ggaa96@naver.com

License

RxDataSources-Texture is available under the MIT license. See the LICENSE file for more info.

Github

link
Stars: 24

Releases

v1.3.0 - 2020-07-17T10:45:29

  • Let's Texture 3.0 (#21)

v1.2.8 - 2020-04-12T07:36:44

Resolve an issue that caused crashes in DelegateProxyType #17

v1.2.7 - 2020-03-31T06:35:19

  • Support SPM(Swift Package Manager)

v1.2.6 - 2020-03-25T11:39:53

  • Let’s Swift 5.2 (#18)

v1.2.5 - 2019-10-01T16:03:21

  • RxASCollectionDelegateProxy conform UICollectionViewDelegateFlowLayout(92dd07518c64b34f2a6b46e4bf4b894aa23b7235)

v1.2.4 - 2019-06-29T09:38:33

RxASCollectionDelegateProxy conform ASCollectionDelegateFlowLayout (#14)

v1.1.5 (Swift 4.2) - 2019-06-29T09:30:27

#14

v1.1.4 (Swift 4.2) - 2019-06-11T13:32:53

#13

v1.2.3 - 2019-06-11T13:32:16

#13

v1.2.2 - 2019-05-28T14:57:50

  • Swift 5
  • Fix datasource property in ASCollectionNode+Rx (#12)

v1.1.3 - 2019-05-28T14:52:55

  • Swift 4.2
  • Fix datasource property in ASCollectionNode+Rx (#12)

v1.2.1 - 2019-05-19T07:12:36

  • Let's Swift 5 (#10 #11)

v1.1.2 - 2019-05-08T21:14:23

  • Fix dispose(deinit) threading issue (#9)

v1.1.1 - 2019-05-01T03:32:19

Fix DeadLock Issue (#8)

v1.1.0 - 2019-04-22T06:39:19

Support NodeBlock, Deprecated configureCell (#6)

v1.0.3 - 2019-04-19T10:51:46

  • Add animated property in AnimationConfiguration (#5)

v1.0.2 - 2019-04-19T10:50:56

  • exported import Differentiator(#4)

v1.0.1 - 2019-04-18T07:24:59

  • Add rx.setDelegate

1.0.0 - 2019-03-04T17:20:11