Giter Club home page Giter Club logo

Comments (9)

jesus-rod avatar jesus-rod commented on July 21, 2024

are you asigning the new data to the datasource? When you do that it should happen right away. For instance, on your DatasourceController you should do the following.

self.datasource = usersDatasource

if that does not work and I wouldnt know why, you could try:

collectionView?.reloadData()

from lbtacomponents.

iehsan77 avatar iehsan77 commented on July 21, 2024

hi,

I already doing the same what you suggest but it's not reloading data in my cells.

from lbtacomponents.

iehsan77 avatar iehsan77 commented on July 21, 2024

LBTAComponents

Is there any method to reload DatasourceConstroller from scratch ??

from lbtacomponents.

iehsan77 avatar iehsan77 commented on July 21, 2024

hi

I would like to reload my data in DatasourceController when the user clicks on the refresh button.My Datasource shows changing in debug but no effect on collection layout views or Cells.

self.datasource = usersDatasource

if that does not work and I wouldnt know why, you could try:

collectionView?.reloadData()

Yes, i have tried it but no luck its shows old values on reload. If you allow me I can share my source code with you that will help to share my issue clearly. I trying to using your LBTAcomponents in my project this is my first project but I stuck on my first screen.

from lbtacomponents.

jesus-rod avatar jesus-rod commented on July 21, 2024

Share your DataSource Code... you have to be missing something. The example project in the repo has some examples with basic usage of the library

from lbtacomponents.

iehsan77 avatar iehsan77 commented on July 21, 2024

from lbtacomponents.

iehsan77 avatar iehsan77 commented on July 21, 2024

from lbtacomponents.

bhlvoong avatar bhlvoong commented on July 21, 2024

You just need to update the datasource object and call reloadData. You can look at the pod source code to see whats going on.

from lbtacomponents.

Gamshan avatar Gamshan commented on July 21, 2024

I am also have same issue. In my case I have an API call minor number changes from ViewDidLoad API.
I set the dataSource "self.datasource = usersDatasource", "self.collectionView?.reloadData()" in DataSourceController when api is success. But no luck It is not reload.

from lbtacomponents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.