mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
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:
@@ -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] = [
|
||||
|
||||
Reference in New Issue
Block a user