Instance Method
drawForeground(inPreviewLayer:options:) drawForegroundInPreviewLayer:options: drawForegroundInPreviewLayer_options_
Is called to asked the plugin to draw anything it likes in front the normal outlines in the Preview View
Declaration
optional func drawForeground(inPreviewLayer layer: GSLayer!, options: [AnyHashable : Any]! = [:])Declaration
- (void) drawForegroundInPreviewLayer:(GSLayer *) layer options:(NSDictionary *) options;Declaration
drawForegroundInPreviewLayer_options_(layer: GSLayer, options: dict)Parameters
layerThe Layer to draw
optionsA dictionary with some info about the environment (currently “Scale”)
Discussion
The scaling and positioning is taken care of. That means you need to draw unscaled and the scaling will be done automatically. If you need to draw something with absolute size, you need to counter scale it.