From b2a1265cadccc34cbdab71b9ed638b908cac9f62 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 7 Aug 2026 17:11:52 -0500 Subject: Fix Swift 6-mode isolation and attribute warnings Under SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor these are warnings in Swift 5 mode and errors in Swift 6 mode: - Drop @retroactive from 'extension LookupType: AppEnum'; LookupType is declared in this module, so the attribute never applied. - Mark SyntaxHighlightTheme and SyntaxHighlighter nonisolated. They were inferred @MainActor but are built and used from the nonisolated markdown renderers in Task.detached; nonisolated makes the off-main confinement correct (Highlightr's JSContext was being driven off the main actor). --- Hutch/App/HutchIntents.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Hutch/App') diff --git a/Hutch/App/HutchIntents.swift b/Hutch/App/HutchIntents.swift index fe4ebdc..ff8fec8 100644 --- a/Hutch/App/HutchIntents.swift +++ b/Hutch/App/HutchIntents.swift @@ -337,7 +337,7 @@ struct CheckBuildsIntent: AppIntent { // MARK: - Search Type -extension LookupType: @retroactive AppEnum { +extension LookupType: AppEnum { public nonisolated static var typeDisplayRepresentation: TypeDisplayRepresentation { TypeDisplayRepresentation(name: "Search Type") } -- cgit v1.2.3