Force Mac "Catalyst" idiom in debug log (#276)
Mac Catalyst incorrectly reported as "Pad".
This commit is contained in:
parent
33e0ceec04
commit
44e0ca9127
|
@ -38,7 +38,11 @@ extension DebugLog {
|
|||
#if os(iOS)
|
||||
let device: UIDevice = .current
|
||||
osVersion = "\(device.systemName) \(device.systemVersion)"
|
||||
#if targetEnvironment(macCatalyst)
|
||||
deviceType = "\(device.model) (Catalyst)"
|
||||
#else
|
||||
deviceType = "\(device.model) (\(device.userInterfaceIdiom.debugDescription))"
|
||||
#endif
|
||||
#else
|
||||
let os = ProcessInfo().operatingSystemVersion
|
||||
osVersion = "macOS \(os.majorVersion).\(os.minorVersion).\(os.patchVersion)"
|
||||
|
|
Loading…
Reference in New Issue