Giter VIP home page Giter VIP logo

Comments (11)

evgenyneu avatar evgenyneu commented on June 8, 2024 2

Hello, @khuong291. I think I had similar problem in the past and solved by clearing "User defined runtime attributes" for the cosmos view (shown in the screenshot).

I have also made a quick test and put cosmos in a table view, could not reproduce your issue (see the attached demo project).

Let me know how it goes.

UsingCosmosInTableView.zip

runtime_attributes

from cosmos.

khuong291 avatar khuong291 commented on June 8, 2024

I have not tried your example project yet. But now It works well.

screen shot 2016-04-17 at 10 56 33 am
Thanks @evgenyneu. +1 ⭐ 👍

from cosmos.

evgenyneu avatar evgenyneu commented on June 8, 2024

I am glad it worked. Feel free to comment if you have any other issues. Have a good day.

from cosmos.

khuong291 avatar khuong291 commented on June 8, 2024

Can I ask one more question: Is CosmosView Rating max = 5

from cosmos.

khuong291 avatar khuong291 commented on June 8, 2024

I think it would more covenient if you can add one more choice like so:
cosmosView.ratingWithRatio(starCount: 5, maxRating: 100) = 90
So the CosmosView will have 4.5 star. 😸

from cosmos.

evgenyneu avatar evgenyneu commented on June 8, 2024

Sorry, I do not understand your question. Can you give me an example of what you want to achieve in your app?

from cosmos.

khuong291 avatar khuong291 commented on June 8, 2024

For example, I want to rating a movie, its rating has 94/100 point, So I the CosmosView.rating should be 94*5/100 = 4.7 if I want maximum with 5 star.

So If I want to use with 10 star, it should be 94*10/100 = 9.4.

I just recomend for you to implement more 😄

from cosmos.

khuong291 avatar khuong291 commented on June 8, 2024

Oh, sorry, you have done with it. My fault.

from cosmos.

evgenyneu avatar evgenyneu commented on June 8, 2024

I do value your recomendations, @khuong291. I just wanted to understand what you meant.
Did you want Cosmos to show ten stars with rating 9.4? If so you can currently do it like this:

cosmosView.settings.totalStars = 10
cosmosView.settings.fillMode = .Precise // Others are .Half and .Full
cosmosView.rating = 9.4

Or you can do it from the Storyboard as well:

ten_stars

This is described in the configuration manual.

And thank you very much for the feedback.

from cosmos.

khuong291 avatar khuong291 commented on June 8, 2024

Yes, I don't read your guide carefully, sorry. Your project is awesome 👍

from cosmos.

MasterHM-ios avatar MasterHM-ios commented on June 8, 2024

Hello, @khuong291. I think I had similar problem in the past and solved by clearing "User defined runtime attributes" for the cosmos view (shown in the screenshot).

I have also made a quick test and put cosmos in a table view, could not reproduce your issue (see the attached demo project).

Let me know how it goes.

UsingCosmosInTableView.zip

runtime_attributes

this solution solved my problem. thanks
cleared user defined attributes from storyboard

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.