[ad_1]
I wish to present the button and picture within the navigation bar.
Utilizing this
let motion = UIAction { _ in }
let picture = UIImage(named: "logout")
let doneButton = UIBarButtonItem(title: "Achieved", picture: picture, primaryAction: motion, menu: menu)
navigationItem.leftBarButtonItem = doneButton
Simply exhibits the picture with out the title.
The documentation
https://developer.apple.com/documentation/uikit/uibarbuttonitem/3600776-init
Solely signifies that if title is nil it could not be displayed.
I attempted
https://stackoverflow.com/a/54403576/1898829 identical outcome
https://stackoverflow.com/a/3903348/1898829 one loses numerous default behaviour and cant use the uiaction with the brand new apis.
Whereas I can positively discover a work round however any work round is lower than very best.
[ad_2]
