how can I set the color of the bar?
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()
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()?
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
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.
Thanks.
would it be possible to set a "selected state" for a UIBarButtonItem in the toolbar?
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.
hello @cragun I have created a separate issue for this https://github.com/iosphere/ISHHoverBar/issues/13