How can i append array data in Subject type Behavior Relay RxSwift Without replace data before. I try to append data to UICollectionViewCell with binding it. It always Flashing white display, because data is replace not append but use the old data.
My code to append new data:
var photoCollectionView = BehaviorRelay<[PhotoList?]>(value: [])
let photoData = try? JSONDecoder().decode(SearchPhoto.self, from: RESPONSE_DATA)
photoCollectionView.accept(photoCollectionView.value + (photoData ?? []))
Or do you have another way to i do
Thanks for your solution :D