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

tint color on ios not configurable #86

Open
firegnome opened this issue Dec 4, 2018 · 1 comment
Open

tint color on ios not configurable #86

firegnome opened this issue Dec 4, 2018 · 1 comment

Comments

@firegnome
Copy link

firegnome commented Dec 4, 2018

On ios we have the problem, that the tint color of the icon is overwritten. In other words, the icon we use is white but the default tint color of ios overwrites that color. The result looks like this:

image

I added the second line in the fab module to achieve what i want:

newImageView = UIImageView.alloc().initWithImage(iconDrawable.ios);
newImageView.tintColor = (new colorModule.Color("#ffffff")).ios;

image

I can create a pull request to resolve this but i would like to hear from you what solution you would prefer. One solution could be to add a iconTintColor Property for ios.

@bradmartin
Copy link
Collaborator

PR gladly accepted. As long as you don't mind documenting on the README that this property is iOS only.

So document here (https://github.com/bradmartin/nativescript-floatingactionbutton#api)

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