iOS Swift - iOS Basics and Setup
What will this Swift code print on an iPhone device?
let device = UIDevice.current
switch device.userInterfaceIdiom {
case .phone:
print("iPhone detected")
case .pad:
print("iPad detected")
default:
print("Other device")
}