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

tabBarItem.titlePositionAdjustment不起作用,求解! #236

Closed xiaopindev closed 4 years ago

xiaopindev commented 4 years ago

if let tabBarItem = v1.tabBarItem as? ESTabBarItem { tabBarItem.badgeValue = "New" tabBarItem.titlePositionAdjustment = UIOffset(horizontal: 0, vertical: -2) }

这个代码文本无法向上偏移。以前没有用ESTabBarController_swift 的时候,用原生的方式是可以的。用了这个框架后,这个偏移就没有效果了。 求解答!

eggswift commented 4 years ago

这个api目前应该还没有支持,你可以自定义一个contentView来实现呀~

xiaopindev commented 4 years ago

这个api目前应该还没有支持,你可以自定义一个contentView来实现呀~

可以做一下支持吗?

eggswift commented 4 years ago

这是个iOS13的api,目前看来还是很小众呀~