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

Tabbar title overlaps other Tabbar's title(In Example Also) #206

Closed Pratik948 closed 5 years ago

Pratik948 commented 5 years ago

Tabbar title is overlapping other Tabbar't title when title is very long. In the system style also this overlaps the title, I had the same problem in my production project so I came over here searching for subclassing tab-bar. I'm attaching issue screenshot and suggested fix also.

Simulator Screen Shot - iPhone XS Max - 2019-08-31 at 11 16 21

Suggested FIx

titleLabel.frame = CGRect.init(x: self.bounds.minX, y: h - titleLabel.bounds.size.height - 1.0, width: self.bounds.maxX, height: titleLabel.bounds.size.height)

eggswift commented 5 years ago

这个木有限制长度,通常情况下也不会有这么长的标题吧,建议在上层处理一下~~