krz/domain-dig

an ios app for DNS & SSL analysis

clone: git clone https://gitbay.org/krz/domain-dig.git

f112f894ac00bf7b6397287c26edc1267883612f

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-07-17T05:01:29Z

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(+)

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<String> & ProvidesDialog {
         let requested = domain.trimmingCharacters(in: .whitespacesAndNewlines)
         guard !requested.isEmpty else {