feat: changed the logic that checks if mac is ARM based from #if arch(arm64) to the information about the platform from the SystemKit (#1247)

This commit is contained in:
Serhiy Mytrovtsiy
2023-01-13 16:37:25 +01:00
parent a6c25038d5
commit 1faf261cfd

View File

@@ -220,13 +220,7 @@ public extension Notification.Name {
}
public var isARM: Bool {
get {
var value = false
#if arch(arm64)
value = true
#endif
return value
}
SystemKit.shared.device.platform != .intel
}
public let notificationLevels: [KeyValue_t] = [