SCKViewDelegate
@objc public protocol SCKViewDelegate
An object conforming to the SCKViewDelegate protocol must implement a
method required to set a color schedule view events.
-
Implemented by a schedule view’s delegate to provide different background colors for the different event types when the view’s color mode is set to
.byEventKind.- Parameters:
- eventKindValue: The event kind for which to return a color.
- scheduleView: The schedule view asking for the color.
Returns
The color that will be used as the corresponding event view’s background.Declaration
Swift
func color(for eventKindValue: Int, in scheduleView: SCKView) -> NSColorParameters
eventKindValueThe event kind for which to return a color.
scheduleViewThe schedule view asking for the color.
Return Value
The color that will be used as the corresponding event view’s background.
- Parameters:
View on GitHub
Install in Dash
SCKViewDelegate Protocol Reference