The reason I need to find out is that on an iPad, a UIPickerView has the same height in landscape orientation as it does in portrait. On an iPhone it is different. The iPad
extension UIDevice { var isIPad: Bool { return UIDevice.current.userInterfaceIdiom == .pad } }