Comments (11)
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.
from cosmos.
I have not tried your example project yet. But now It works well.
Thanks @evgenyneu. +1 ⭐ 👍
from cosmos.
I am glad it worked. Feel free to comment if you have any other issues. Have a good day.
from cosmos.
Can I ask one more question: Is CosmosView Rating max = 5
from cosmos.
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.
Sorry, I do not understand your question. Can you give me an example of what you want to achieve in your app?
from cosmos.
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.
Oh, sorry, you have done with it. My fault.
from cosmos.
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:
This is described in the configuration manual.
And thank you very much for the feedback.
from cosmos.
Yes, I don't read your guide carefully, sorry. Your project is awesome 👍
from cosmos.
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.
this solution solved my problem. thanks
cleared user defined attributes from storyboard
from cosmos.
Related Issues (20)
- Unwanted behavior in a UIScrollView HOT 4
- Please add macOS support in SwiftUI HOT 3
- How to disable tapping? HOT 2
- How to set empty image for empty start(non partially filled as well) HOT 6
- My image and `withTintColor` HOT 2
- How to prevent didTouchCosmos from issuing a rating
- Can you please build the framework for the Simulator HOT 3
- [Feature Request] Add custom image for half star HOT 4
- Filled color values changing even though the data is not. HOT 6
- Error While installing pod. HOT 1
- Tap gesture recognizer messes up Cosmos HOT 1
- Build failed in Storyboard
- Showing Recent Messages /Package.swift has no Package.swift manifest for version 9.0.0 in https://github.com/evgenyneu/Cosmos.git
- Single star doesn't show precise filling.
- Tapping on Rating always select 3 rating when VoiceOver is on
- Remove rating after giving
- Set custom accessibilityLabel for Cosmos View HOT 1
- demo
- Privacy Manifests HOT 21
- I have error when run demo project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmos.