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

How To adjust text in iPad. #217

Closed ramesh09ios closed 1 year ago

ramesh09ios commented 4 years ago
  1. As per below image unable to customise the position of the text.
Sc113851
kevinstier commented 3 years ago

In your ESTabBarItemContentView subclass you can override traitCollection like so:

override var traitCollection: UITraitCollection {
    return UITraitCollection(traitsFrom: [super.traitCollection, UITraitCollection(horizontalSizeClass: .compact)])
}

This will place the text below the icon.