-
Notifications
You must be signed in to change notification settings - Fork 3
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
Style not applied to UITabBarItem #1
Comments
Hello. Notice that You need to find a way to operate on |
Hello, Thanks and regards |
I've thought over your question a bit more, and it seems my answer wasn't comprehensive. First, StyleSheet supports two modes for installing its handler into UIKit. One is direct method-swizzling and the other is "hitchhiking" It seems that Second, it's possible to support styling for I would appreciate you (and anyone interested) for providing additional feedback taking into account the above. |
One more update. StyleSheet v2.1.0 can't work with Anyway, |
I've discovered very surprising behavior of In the absence of an adequate workaround, I would prefer not to deal with this mess. There is Any thoughts? |
And it's impossible to override a method in a |
Hello. Second: |
Okay, here is the final conclusion.
It's also not possible to hitchhike It doesn't seem possible to amend the behavior of the standard appearance-proxy (without dirty hacks) as well. It also doesn't seem to be a good idea to monkey-patch all the (known) So I see no appropriate way to solve the issue at the moment. Will document it in the |
Hello,
I tried to apply a Style to UITabBarItem, but the Style-block is never called. (All other Styles are working)
Style<FooterFontStyle, UITabBarItem> { $0.setTitleTextAttributes([NSFontAttributeName: FontSmall], for: .normal) }
extension UITabBarItem: FooterFontStyle { }
Can you tell me, if I'm making something wrong, or fix this problem?
I could not figure out, why StyleSheet is not working for UITabBarItems.
Regards and Thanks
The text was updated successfully, but these errors were encountered: