rx-swift tag

2 questions


1 answers
85 views
0
I want to receive the TableViewCell layout event in RxSwift's "tableView.rx.willDisplayCell" and animate the text using CAD DisplayLink in subscribe.

I implemented it using CADisplayLink to animate the text representing the percentage as shown in the image, but it does not work well with RxSwift, and I cannot discard the cell instance during the sc...


1 answers
93 views
0
Meaning of sharing (replay:1) in BehaviorRelay

You may see share(replay:1) using BehaviorRelay on RxSwift.let relay=RxCocoa.BehaviorRelay<String>(value:)variable:RxSwift.Observable<String>{ return relay .observeOn(MainScheduler.instan...

2 years ago

© 2024 OneMinuteCode. All rights reserved.