Is there a standard way to enable showing title to toolbar items in UIToolBar
? UIBarButtonItem
has properties for both image and title, but when I set them, only image appears. Is there a way to present also a title (similarly to standard Phone application in iOS)?
My code:
let settings = UIBarButtonItem(image: #imageLiteral(resourceName: "settingsEmpty").withRenderingMode(.alwaysTemplate), style: .plain, target: self, action: nil)
settings.title = "Settings"
toolbarItems = [settings]