Closed zygoat closed 1 year ago
Set BasicTabBarItemContentView's renderingMode propertie to alwaysOriginal. You can see the surprise~
Can you elaborate? I presume you mean ESTabBarItemContentView
(there is no such class as BasicTabBarItemContentView
). Even so, setting renderingMode = .alwaysOriginal
seems to have no such effect—the icon is still drawn small, and is receives no highlight colour.
In implementing an action-style (button) item in my tab bar, I've observed a couple of problems with size and user interaction that I've had to work around in a subclass:
These problems are corrected with the following subclass:
The lack of highlighting seems to be an obvious bug.
The lack of natural button resizing would be better controlled through a flag (e.g.
sizeToFitIcon
or such) rather than need a layout override.