ToolbarController
@objc(PESDKToolbarController) open class ToolbarController: UIViewController
A ToolbarController
is the container view controller for a PhotoEditViewController
and its
associated tool controllers. It usually displays a toolbar at bottom and has methods to transition
between various tools. If it is embedded inside a UINavigationController
it uses the navigation
controllers navigation bar instead of its own toolbar at the bottom.
-
The toolbar of this controller.
Declaration
Swift
private(set) open lazy var toolbar: Toolbar =
-
The view controllers that are currently on the stack of the toolbar controller.
Declaration
Swift
private(set) public var viewControllers = [UIViewController]()
-
Pushes a view controller on the stack and presents its view.
Declaration
Swift
open func push(_ viewController: UIViewController, animated: Bool, completion: (() -> Void)? = nil)
Parameters
viewController
The view controller to push.
animated
Whether or not to animate the transition.
completion
A completion handler to execute after the transition.
-
Pops the top view controller from the stack and removes its view.
Declaration
Swift
@discardableResult open func pop(animated: Bool, completion: (() -> Void)? = nil) -> UIViewController?
Parameters
animated
Whether or not to animate the transition.
completion
A completion handler to execute after the transition.
Return Value
The view controller that was popped from the stack, if any.