From f112f894ac00bf7b6397287c26edc1267883612f Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 17 Jul 2026 00:01:29 -0500 Subject: Fix Swift 6 actor-isolation warning in InspectDomainIntent The app target sets SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor, so DomainReportBuilder and DomainInspectionService are MainActor-isolated. The unmarked perform() ran nonisolated, so calling build(from:) triggered an "expression is 'async' but is not marked with 'await'" warning (an error in the Swift 6 language mode). Mark perform() @MainActor to match AddToWatchlistIntent. --- DomainDig/DomainDigIntents.swift | 1 + 1 file changed, 1 insertion(+) (limited to 'DomainDig/DomainDigIntents.swift') diff --git a/DomainDig/DomainDigIntents.swift b/DomainDig/DomainDigIntents.swift index fb2e015..44a1dc4 100644 --- a/DomainDig/DomainDigIntents.swift +++ b/DomainDig/DomainDigIntents.swift @@ -28,6 +28,7 @@ struct InspectDomainIntent: AppIntent { Summary("Inspect \(\.$domain)") } + @MainActor func perform() async throws -> some IntentResult & ReturnsValue & ProvidesDialog { let requested = domain.trimmingCharacters(in: .whitespacesAndNewlines) guard !requested.isEmpty else { -- cgit v1.2.3