ToolMenuItem
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKToolMenuItem)
open class ToolMenuItem : NSObject, MenuItem
The menu item that is used in PhotoEditViewController
to present a new tool.
-
The title of the menu item.
Declaration
Swift
public let title: String
-
The icon of the menu item.
Declaration
Swift
public let icon: UIImage
-
The class of the tool that should be presented when selecting this menu item.
Declaration
Swift
public let toolControllerClass: PhotoEditToolController.Type
-
Creates a new tool menu item with the given title, icon and tool controller class.
Declaration
Swift
public convenience init(title: String, icon: UIImage, toolControllerClass: PhotoEditToolController.Type)
Parameters
title
The title of the menu item.
icon
The icon of the menu item.
toolControllerClass
The class of the tool that should be presented when selecting this menu item.
-
Creates the item for the transform tool.
Declaration
Swift
static func createTransformToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the filter tool.
Declaration
Swift
static func createFilterToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the adjust tool.
Declaration
Swift
static func createAdjustToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the sticker tool.
Declaration
Swift
static func createStickerToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the text tool.
Declaration
Swift
static func createTextToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the text design tool.
Declaration
Swift
static func createTextDesignToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the overlay tool.
Declaration
Swift
static func createOverlayToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the frame tool.
Declaration
Swift
static func createFrameToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the brush tool.
Declaration
Swift
static func createBrushToolItem() -> ToolMenuItem?
Return Value
A tool menu item.
-
Creates the item for the focus tool.
Declaration
Swift
static func createFocusToolItem() -> ToolMenuItem?
Return Value
A tool menu item.