From 1faf261cfdb41d658c396e9b2b9237a2a6cd6e87 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Fri, 13 Jan 2023 16:37:25 +0100 Subject: [PATCH] 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) --- Kit/types.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Kit/types.swift b/Kit/types.swift index fe8c528a..a39936fe 100644 --- a/Kit/types.swift +++ b/Kit/types.swift @@ -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] = [