Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 449 Bytes

Family.md

File metadata and controls

19 lines (18 loc) · 449 Bytes

Device family

func iOSDeviceFamily() {
    let family = Device.family()
    switch family {
    case .iPodtouch:
        print("Device belong to \(family) family")
    case .iPhone:
        print("Device belong to \(family) family")
    case .iPad:
        print("Device belong to \(family) family")
    case .simulator:
        print("Device belong to \(family) family")
    case .unknown:
        print("unknown Device.")
    }
}