eggswift / ESTabBarController

:octocat: ESTabBarController is a Swift model for customize UI, badge and adding animation to tabbar items. Support lottie!
MIT License
5.17k stars 578 forks source link

一个关于属性命名的问题 #38

Closed CepheusSun closed 7 years ago

CepheusSun commented 7 years ago

您好, 我发现 ESTabBarItemContentView 这个类的 highlightTextColor 属性是其实是 selectedTextColor 的意思。用 hightlight 这个词貌似有点误导的意思。当然还有 highlightIconColor. 一个小小的建议。

eggswift commented 7 years ago

一个很好的问题,之所以这样命名是因为ESTabBarController是支持类似UIButton的高亮状态的。所以才命名成highlight。

CepheusSun commented 7 years ago

另外

        let v1 = ViewController()
        v1.tabBarItem = ESTabBarItem(TabbarBasicContentView(), image: #imageLiteral(resourceName: "tabbar_hot_normal"))

这样的代码,并且在 给 v1的title属性一个值。然后下面的标签控制器还是出现了这个值(不知道我表述清楚没有) 这个跟期望的只在 navigationbar 上出现有点出入。这样的设计是为了跟系统一致吗?毕竟我使用了 ESTabbarItem 来替代系统的 UITabbarItem 并且在创建的时候, 也没有给 title 值。

eggswift commented 7 years ago

ESTabBarItem的title是和UITabBarItem的title做了桥接,在表现上是和系统一致的

CepheusSun commented 7 years ago

很牛X的东西, 谢谢大神。