I can import WatchKit
and WatchConnectivity
and use various delegates like WCSessionDelegate
, without any problem.
But when I try to import ClockKit
or add CLKComplicationDataSource
, Xcode throws errors like "no module exists."
To check this, I created a watch app project and examined ComplicationController.swift. It does have import ClockKit
in the source.
Why can't we test this API in an Xcode Playground? Doesn't that defeat the purpose of having a Playground?