RxSwiftCommunity / RxCocoa-Texture

RxCocoa Extension Library for Texture.
MIT License
100 stars 52 forks source link

[Feature] Support ASTextNode2 Extension #15

Closed GeekTree0101 closed 5 years ago

GeekTree0101 commented 5 years ago

New Feature!

Now RxCocoa-Texture support ASTextNode2 extension Be careful use AS_ENABLE_TEXTNODE preprocessor definition (default is YES) Usage is equal with ASTextNode :)

let textNode1 = ASTextNode2()
let disposeBag = DisposeBag()

Observable.just("apple")
                   .bind(to: textNode1.rx.text([:]))
                   .disposed(by: disposeBag)