ToolbarItem

@objcMembers
@objc(PESDKToolbarItem)
open class ToolbarItem : NSObject

A ToolbarItem hosts views which are displayed in the toolbar of a ToolbarController. If the toolbar controller is embedded into an UINavigationController, those views are added to the navigation controller’s navigation bar.

  • The title view is displayed in the center of the toolbar or navigation bar.

    Declaration

    Swift

    open var titleView: UIView?
  • The left button is displayed on the left side of the toolbar or navigation bar.

    Declaration

    Swift

    @available(*, deprecated, message: "Use `leadingButton` instead.")
    open var leftButton: ToolbarButton? { get set }
  • The right button is displayed on the right side of the toolbar or navigation bar.

    Declaration

    Swift

    @available(*, deprecated, message: "Use `trailingButton` instead.")
    open var rightButton: ToolbarButton? { get set }
  • The leading button is displayed on the left side of the toolbar or navigation bar in a LTR environment and on the right side of the toolbar or navigation bar in a RTL environment.

    Declaration

    Swift

    open var leadingButton: ToolbarButton?
  • The trailing button is displayed on the right side of the toolbar or navigation bar in a LTR environment and on the left side of the toolbar or navigation bar in a RTL environment.

    Declaration

    Swift

    open var trailingButton: ToolbarButton?