RxASDataSources
RxDataSource for AsyncDisplayKit/Texture
Install / Use
/learn @RxSwiftCommunity/RxASDataSourcesREADME
RxASDataSources
RxDataSources for AsyncDisplayKit/Texture: ASTableNode & ASCollectionNode.
Features
- [x] O(N) Diff algorithm from RxDataSources/Differentiator
- [x] Shared RxDataSources's APIs so you must learn only once.
- [x] Supports
ASTableNodeandASCollectionNode - [x] Support
nodeBlock - [ ] More complex Example app
Requirements
- iOS 9.0+
- Xcode 10.1+
- RxSwift 5.0 & Texture 2.8
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.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
