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

how can I set the color of the bar? #11

Open
Sweeper777 opened this issue Aug 24, 2016 · 6 comments
Open

how can I set the color of the bar? #11

Sweeper777 opened this issue Aug 24, 2016 · 6 comments

Comments

@Sweeper777
Copy link

I want to set the color of the bar. I tried setting the backgroundColor property but it doesn't work as I intented:

bar.backgroundColor = UIColor.greenColor()

screen shot 2016-08-24 at 12 52 24 pm

It seems that the bar is translucent. And there are little green triangles sticking out.

How can I set the background of the bar to UIColor.greenColor()?

@felixLam
Copy link
Member

Hi @Sweeper777,

right now you can only change the UIVisualEffect used for the backing view. The reason is that we use a UIVisualEffectView as the backing view for the bar. Will keep the issue open, to see if there is interest in setting a backgroundcolor.

Kind regards,

Felix

@felixLam
Copy link
Member

If you need this feature urgently you can fork this and change the background view:
https://github.com/iosphere/ISHHoverBar/blob/master/ISHHoverBar/ISHHoverBar.m#L200

Simply set it to a UIView with the desired background color.

@Sweeper777
Copy link
Author

Thanks.

@cragun
Copy link

cragun commented Sep 21, 2016

would it be possible to set a "selected state" for a UIBarButtonItem in the toolbar?

@felixLam
Copy link
Member

felixLam commented Oct 5, 2016

Hi @cragun, thanks for bringing this up. I believe that right now the different states of the bar button item are not supported. Will definitely look into that as well.

@felixLam
Copy link
Member

felixLam commented Oct 5, 2016

hello @cragun I have created a separate issue for this #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants