mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-07 16:32:04 +00:00
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)
|
#if os(iOS)
|
||||||
let device: UIDevice = .current
|
let device: UIDevice = .current
|
||||||
osVersion = "\(device.systemName) \(device.systemVersion)"
|
osVersion = "\(device.systemName) \(device.systemVersion)"
|
||||||
|
#if targetEnvironment(macCatalyst)
|
||||||
|
deviceType = "\(device.model) (Catalyst)"
|
||||||
|
#else
|
||||||
deviceType = "\(device.model) (\(device.userInterfaceIdiom.debugDescription))"
|
deviceType = "\(device.model) (\(device.userInterfaceIdiom.debugDescription))"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
let os = ProcessInfo().operatingSystemVersion
|
let os = ProcessInfo().operatingSystemVersion
|
||||||
osVersion = "macOS \(os.majorVersion).\(os.minorVersion).\(os.patchVersion)"
|
osVersion = "macOS \(os.majorVersion).\(os.minorVersion).\(os.patchVersion)"
|
||||||
|
Loading…
Reference in New Issue
Block a user