RendererViewContext
public class RendererViewContext
Describes the context for the RendererView. A context is used to execute the commands using RendererCommandExecutor. In a typical scenario, where there are
multiple levels of RendererViews that are contained in another RendererView by virtue of being in Attachments, all the RendererViews sharing the same
context automatically share the RendererCommandExecutor. i.e. the RendererCommandExecutor operates on only those RendererViews which have the same
context as provided to the RendererCommandExecutor.
-
Identifies the
RendererViewContextuniquely.Declaration
Swift
public let id: String -
Friendly name for the context. It is possible to create multiple
RendererViewContextusing the same name. A context is uniquely identified byidand not the name.Declaration
Swift
public let name: String -
Default shared context. Use this in case there is only a single
RendererViewon the screen at the root level.Declaration
Swift
public static let shared: RendererViewContext -
Initializes a new context
Declaration
Swift
public convenience init(name: String)Parameters
nameFriendly name for the context.
View on GitHub
RendererViewContext Class Reference