Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tableview reload section or rows #289

Open
YuriiPetrov opened this issue Feb 19, 2019 · 2 comments
Open

tableview reload section or rows #289

YuriiPetrov opened this issue Feb 19, 2019 · 2 comments

Comments

@YuriiPetrov
Copy link

Hi. How I can to do "tableview reload section or rows"? I changed a property for item value in my array, but I don't understand how I can to reload row.

@mkko
Copy link

mkko commented Mar 7, 2019

You shouldn't need to reload anything, that's how the binding works. Can you either paste the code here or provide some full example on your setup?

@StephentTom
Copy link

StephentTom commented Aug 9, 2019

I had a similar problem!!!

  code:
    let days: Driver<[SectionModel<String, DateModel>]>
    ....

    let ds = RxCollectionViewSectionedReloadDataSource<SectionModel<String, DateModel>> (configureCell: { (ds, collectionView, indexPath, model) -> DayCell in
           let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kCellIdentifire, for: indexPath) as! DayCell
        
          cell.model = model
        
          return cell
      })
    
       vmOutput.days
        .asDriver()
        .drive(collectionView.rx.items(dataSource: ds))
        .disposed(by: rx.disposeBag)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants