Giter Club home page Giter Club logo

Comments (6)

evgenyneu avatar evgenyneu commented on June 13, 2024

Hi @willcunane sorry don't understand the problem. Could you please explain a little more?

from cosmos.

willcunane avatar willcunane commented on June 13, 2024

In the video I select a row from my tableview and sometimes (not every time) the stars in the row selected change the value of active stars. So the Phillips 66 should be 2 stars, in the video after the 2nd click, you can see that the stars go from 2 filled in stars to 5. In the console to the left I have it printing the value of what the stars should be.

The bug could very well be on my end but I tried to troubleshoot for a few hours and couldn't seem to find the issue.

from cosmos.

iTollMouS avatar iTollMouS commented on June 13, 2024

from cosmos.

willcunane avatar willcunane commented on June 13, 2024

Ok thanks, I'll check it out again tonight and close the issue if I get it figured out

from cosmos.

willcunane avatar willcunane commented on June 13, 2024

After testing it multiple times the issue still persists but only on a simulator. When I run it on my device it works with no problems. I'll just leave my code below for reference on how I'm passing the data to Cosmos.

cell.cosmosLabel.rating = Double(data.rating) ?? 0

from cosmos.

evgenyneu avatar evgenyneu commented on June 13, 2024

Thanks for clarifying @willcunane

So the Phillips 66 should be 2 stars, in the video after the 2nd click, you can see that the stars go from 2 filled in stars to 5.

Phillips 66 changed to five stars because you clicked on it (at 4 sec in the video). You can disable user interactions by

cosmosView.settings.updateOnTouch = false

as documented here under "Touch Settings". Let me know if it helps.

from cosmos.

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.