RendererCommandExecutor
public class RendererCommandExecutor
RendererCommandExecutor manages all the RendererView in the main RendererView. Sub renderers may have been added as Attachment in the RendererView.
All the RendererViews in the hierarchy sharing the same RendererContext will automatically be handled by the RendererCommandExecutor.
RendererCommandExecutor keeps the track of the RendererView that has been selected and executes the given command in the active RendererView.
-
Initializes the
RendererCommandExecutorDeclaration
Swift
public init(context: RendererViewContext = RendererViewContext.shared)Parameters
contextThe context for the command executor.
RendererCommandExecutoris capable of executing commands only on theRendererViews which are created using the samecontext. Default value isRendererViewContext.shared -
Executes the given command on the active
RendererViewhaving the sameContextas the Command Executor.RendererCommandwill be executed only if theRendererCommand.canExecute()returnstruefor the selectedRendererView.Declaration
Swift
public func execute(_ command: RendererCommand)Parameters
commandCommand to execute
View on GitHub
RendererCommandExecutor Class Reference