What are the model identifiers for the iPhone 16 Pro and iPhone 16 Pro Max?
static func getiPhoneType() -> String {
var systemInfo = utsname()
uname(&systemInfo)
let machineMirror = Mirror(reflecting: systemInfo.machine)
let identifier = machineMirror.children.reduce("") { identifier, element in
guard let value = element.value as? Int8, value != 0 else { return identifier }
return identifier + String(UnicodeScalar(UInt8(value)))
}
return identifier
}
Does anyone have a real device to run the code and provide the information for the iPhone 16 Pro and iPhone 16 Pro Max?