Documentation Archive Developer
Search

ClockKit Changes for Swift

ClockKit

Declaration
From
class CLKComplicationServer : NSObject {
    class func sharedInstance() -> Self!
    var activeComplications: [CLKComplication]! { get }
    var earliestTimeTravelDate: NSDate! { get }
    var latestTimeTravelDate: NSDate! { get }
    func reloadTimelineForComplication(_ complication: CLKComplication!)
    func extendTimelineForComplication(_ complication: CLKComplication!)
}
To
class CLKComplicationServer : NSObject {
    class func sharedInstance() -> Self
    var activeComplications: [CLKComplication]? { get }
    var earliestTimeTravelDate: NSDate { get }
    var latestTimeTravelDate: NSDate { get }
    func reloadTimelineForComplication(_ complication: CLKComplication)
    func extendTimelineForComplication(_ complication: CLKComplication)
}

Declaration
From
var activeComplications: [CLKComplication]! { get }
To
var activeComplications: [CLKComplication]? { get }

Declaration
From
var earliestTimeTravelDate: NSDate! { get }
To
var earliestTimeTravelDate: NSDate { get }

Declaration
From
func extendTimelineForComplication(_ complication: CLKComplication!)
To
func extendTimelineForComplication(_ complication: CLKComplication)

Declaration
From
var latestTimeTravelDate: NSDate! { get }
To
var latestTimeTravelDate: NSDate { get }

Declaration
From
func reloadTimelineForComplication(_ complication: CLKComplication!)
To
func reloadTimelineForComplication(_ complication: CLKComplication)

Declaration
From
class func sharedInstance() -> Self!
To
class func sharedInstance() -> Self