I want to make a phone call from Apple Watch. I imported WatchKit. Then I put this code in my method:
if let telURL=NSURL(string:"tel:5553478") { let wkExtension=WKExtension.sharedExtension() wkExtension.openSystemURL(telURL) }
This shows me an error: using the unresolved identifier "WKExtension" on line 2. I don't know what I'm doing wrong: /
swift watchkit apple-watch
Franziska reichelt
source share