From 24fefbddea9b3a4bec004d88cb717fa68cef8edd Mon Sep 17 00:00:00 2001 From: ferkans-amir Date: Tue, 28 Jul 2026 10:36:06 +0200 Subject: [PATCH] fix(spotlight): check isMacNative to set accurate Spotlight description and keywords --- Sources/SpotlightIndexer.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/SpotlightIndexer.swift b/Sources/SpotlightIndexer.swift index 0d846ae..a4dbb99 100644 --- a/Sources/SpotlightIndexer.swift +++ b/Sources/SpotlightIndexer.swift @@ -33,8 +33,10 @@ enum SpotlightIndexer { for game in games { let attrs = CSSearchableItemAttributeSet(contentType: .item) attrs.title = game.name - attrs.contentDescription = "Windows game · \(bottleName)" - attrs.keywords = [game.name, bottleName, "wine", "windows", "game", "macncheese"] + let typeLabel = game.isMacNative == true ? "Mac game" : "Windows game" + attrs.contentDescription = "\(typeLabel) · \(bottleName)" + let platformKeyword = game.isMacNative == true ? "mac" : "windows" + attrs.keywords = [game.name, bottleName, "wine", platformKeyword, "game", "macncheese"] if let epicAppName = game.epicAppName, !epicAppName.isEmpty { epicItems.append(CSSearchableItem(