SCKEvent
@objc public protocol SCKEvent: NSObjectProtocol
Any type implementing the properties required to define an event displayed in
a SCKView
subclass.
-
An integer used by the
SCKView
to distinguish between different event types whencolorMode
is set to.byEventKind
. Please reserve the-1
value for special or transitory events.Note
A good practice when managing events whith different types could could be creating an enum wrapper and returning its raw values in this property. The framework does not include the enum to allow you to define it with the event types you need.Declaration
Swift
@objc var eventKind: Int
-
The event’s duration in minutes.
Declaration
Swift
@objc var duration: Int
-
The event’s starting date and time.
Declaration
Swift
@objc var scheduledDate: Date
-
A string describing this event. It will be drawn inside of the respective
SCKEventView
.Declaration
Swift
@objc var title: String
-
The user object associated with the event, also referred as the event’s owner.
Declaration
Swift
@objc var user: SCKUser