mirror of
https://github.com/ProtonMail/ios-mail.git
synced 2026-06-14 09:54:45 +00:00
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:
@@ -21,6 +21,7 @@ protocol AppIconConfigurable {
|
||||
var alternateIconName: String? { get }
|
||||
var supportsAlternateIcons: Bool { get }
|
||||
|
||||
@MainActor
|
||||
func setAlternateIconName(_ alternateIconName: String?) async throws
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user