Reputation: 1103
I want to find the watchOS version of the Apple Watch which is paired with the iOS device.
The following code works for iOS devices, but I couldn't figure out a way to find the watchOS version:
[[UIDevice currentDevice].systemVersion]
And also, with iOS 9.3 and watchOS 2.2 we will be allowed to pair with more than one watches. So, is there any way I can get details of all paired watches programatically?
Upvotes: 7
Views: 3097
Reputation: 856
You can use the below code to get watch kit details
[[WKInterfaceDevice currentDevice] systemVersion]
The details can be found in the docs.
Upvotes: 12
Reputation: 11987
Swift version.
let watchOSVersion = WKInterfaceDevice.currentDevice().systemVersion
print("WatchOS version: \(watchOSVersion)")
Upvotes: 1