UIBarItem
An abstract superclass for items that you can add to a bar that appears at the bottom of the screen.
Declaration
@MainActor class UIBarItemOverview
Items on a bar behave in a way similar to buttons (instances of UIButton). They have a title, image, action, and target. You can also enable and disable an item on a bar.
Customize appearance
You can customize the image to represent the item, and the position of the image, using image and imageInsets respectively.
You can also specify a custom image and position to use in landscape orientation when using the iPhone appearance idiom using landscapeImagePhone and landscapeImagePhoneInsets respectively. In addition, you can customize the title’s text attributes using setTitleTextAttributes(_:for:), either for a single item, or for all items by using the appearance proxy (for example, [UIBarItem appearance]).
Topics
Creating a bar item
Getting and setting properties
titleimagelandscapeImagePhonelargeContentSizeImageimageInsetslandscapeImagePhoneInsetslargeContentSizeImageInsetsisEnabledtag