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

My image and withTintColor #181

Open
matsotaa opened this issue Jan 24, 2021 · 2 comments
Open

My image and withTintColor #181

matsotaa opened this issue Jan 24, 2021 · 2 comments

Comments

@matsotaa
Copy link

matsotaa commented Jan 24, 2021

Hello, evgenyneu
Thank you for your pod)
I've got some question here.
I have image in png format. I'm able to change tint of it in casual UIImageView with help of .withTintColor(_:) as it expected, but when I add image to rateView.settings.filledImage or rateView.settings.emptyImage with this method nothing happens. It adds my image with origin tint color. Is that supposed to be like that or kinda bug?
How can I change tint color of added image in your pod?

And one more question:
Is it possible to change alignment of stars? Default statement like on left side. Can I make all stars aimed on center in my view?

Sincerely, Andrew

  • Library setup method: CocoaPods
  • Version of the library: 23.0
  • Xcode version. 12.0
  • OS version. Example: 13.0
@evgenyneu
Copy link
Owner

evgenyneu commented Jan 25, 2021

Hi @matsota, thanks for reporting the issues.

It adds my image with origin tint color. Is that supposed to be like that or kinda bug? How can I change tint color of added image in your pod?

Yes, it's a bug in Cosmos library, there is no way to display tinted images for the stars at the moment. It has not been implemented. Cosmos does not use UIImageView, but instead draws the stars images using CALayers (see code). If we want to implements the tint, we need to update the library and do something like this.

Is it possible to change alignment of stars? Default statement like on left side. Can I make all stars aimed on center in my view?

You can use auto layout and center the cosmos view in your screen, as shown here.

@matsotaa
Copy link
Author

Oh, thanks a lot)

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

2 participants