image
The action’s image displayed in the navigation bar.
Declaration
var image: UIImage? { get set }Discussion
This property is used only when the action is displayed in the navigation bar. By default, it is set to nil, and the navigation bar displays the value of the action’s localizedTitle property.
If set, the navigation bar derives a bar button image from this image. Only the alpha values in the source image are used to create the bar button image—opaque values are ignored.
If this image is too large, it is scaled to fit. Typically, navigation bar images are 20 x 20 points.