Reputation: 37329
Is there a way to get the instance of extension delegate on watchOS? For example, can I get its instance from an interface controller or other code in the watch extension?
Upvotes: 16
Views: 4467
Reputation: 4892
In Swift:
let watchDelegate = WKExtension.shared().delegate as? ExtensionDelegate
Upvotes: 25