Instance Property

selectedImage

The image displayed when the tab bar item is selected.

Declaration

var selectedImage: UIImage? { get set }

Discussion

If nil, the value from the image property on the superclass, UIBarItem, is used as both the unselected and selected image.

By default, the actual selected image is automatically created from the alpha values in the source image. To prevent system coloring, provide images with UIImage.RenderingMode.alwaysOriginal.