Instance Property
activeLayer
the currently active layer of the window
Declaration
var activeLayer: GSLayer? { get }Declaration
@property (nonatomic, readonly) GSLayer * activeLayer;Declaration
activeLayer() -> GSLayerReturn Value
The active layer.
Discussion
This is only valid if one layer has direct focus. If more than one are selected, this returns nil.