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.
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.
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)