[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
MIT License
6.91k
stars
1.45k
forks
source link
[bug]: CYLTabBar overrides the -traitCollection getter, which is not supported. #546
[TraitCollection] Class CYLTabBar overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.
[Assert] A trait environment returned a trait collection with unspecified values for traits that are not allowed to be unspecified. This is a serious application bug and will cause undefined behavior. This issue may be caused by your class overriding the traitCollection property getter, which is not supported. Make sure to use the appropriate API if you are trying to override traits. Trait Environment: <UITabBarButtonLabel: 0x10a81f810; frame = (25 34.3333; 20.6667 12); text = 'Home'; opaque = NO; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x280fe6710>>; Trait Collection: <UITraitCollection: 0x2817f3dc0; HorizontalSizeClass = Compact, PreferredContentSizeCategory = L>
Base Info for this issue
1. How to reproduce the problem.
2. Please help me in this way.
remove not supported methods
3. Here is a Demo.
CYLTabBarController Demo
4. Here is my Debug log
[TraitCollection] Class CYLTabBar overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.
[Assert] A trait environment returned a trait collection with unspecified values for traits that are not allowed to be unspecified. This is a serious application bug and will cause undefined behavior. This issue may be caused by your class overriding the traitCollection property getter, which is not supported. Make sure to use the appropriate API if you are trying to override traits. Trait Environment: <UITabBarButtonLabel: 0x10a81f810; frame = (25 34.3333; 20.6667 12); text = 'Home'; opaque = NO; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x280fe6710>>; Trait Collection: <UITraitCollection: 0x2817f3dc0; HorizontalSizeClass = Compact, PreferredContentSizeCategory = L>