Hello
I've seen that UIBarButtonSystemItem has a new item since iOS13, "close". However, I can't seem to customize it's color. Is there any way to customize it ?
Thanks
Hello
I've seen that UIBarButtonSystemItem has a new item since iOS13, "close". However, I can't seem to customize it's color. Is there any way to customize it ?
Thanks
What do you mean ? Do you want to change the color of
UIBarButtonItem.SystemItem for close
Have you tried using
tintColortintColor
The tint color to apply to the button item.
Declaration
var tintColor: UIColor? { get set }
Discussion
In iOS v7.0, all subclasses of
UIView derive their behavior for tintColor from the base class. Although UIBarButtonItem is not a view, its tintColor property behaves the same as that of UIView. See the discussion of tintColor at the UIView level for more information.
I obviously tried tintColor. The button doesn't change color. However, if I change the light/dark mode on the phone, the button goes from dark cross on light circle to light cross on dark circle.
The question is now : is there a way to make the button "believe" we are in light or dark mode ?