Title position of UIBarButton

94 Views Asked by At

I want to set my UIBarButtonItem.title underneath the UIBarButton image.

enter image description here

I tried using :

myBarButton.setTitlePositionAdjustment(UIOffset(horizontal: 5,vertical: -5), for: UIBarMetrics.default)

the text doesn't show though. Any ideas? It is not possible for me to integrate UITabBar just in case this is your answer.

1

There are 1 best solutions below

0
On

You can adjust your button's title and image with "Size Inspector". Size inspector found in "utilities area".

enter image description here