iOS Swift - iOS Basics and Setup
Identify the issue in this Swift code intended to detect an Apple Watch:
let device = WKInterfaceDevice.current()
if device.systemName == "watchOS" {
print("Apple Watch detected")
}