Fix concurrency warning by adding @MainActor annotation in protocol definition

The warning was: "Sending 'self.appIconConfigurator' risks causing data races;
this is an error in the Swift 6 language mode"
This commit is contained in:
Mateusz Szklarek
2025-09-17 11:04:55 +02:00
parent e28f5d66ad
commit 87ae1b3be3
@@ -21,6 +21,7 @@ protocol AppIconConfigurable {
var alternateIconName: String? { get }
var supportsAlternateIcons: Bool { get }
@MainActor
func setAlternateIconName(_ alternateIconName: String?) async throws
}