ToolSettings
public class ToolSettings
Collection of properties for use by tools. Unlike UserSettings
, these
properties are meant to be set by the tools themselves.
-
Shape which should have the selection rect drawn around it. May also be used by tools to keep track of some “active” shape. (The text tool does this.)
Declaration
Swift
public var selectedShape: ShapeSelectable? { get set }
-
This view, if non-nil, is added to the view hierarchy above the drawing so that the user may interact with it. The tool is responsible for setting its frame.
Declaration
Swift
public var interactiveView: UIView? { get set }
-
Set this to
true
if you have modified a shape that is already added to the drawing.DrawingView
checks it each frame during tool operations and regenerates its buffer accordingly.WARNING: Redrawing the buffer is slow!
Declaration
Swift
public var isPersistentBufferDirty: Bool { get set }