We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11a75bf commit e8bd2eaCopy full SHA for e8bd2ea
2 files changed
Template/Extensions/URL.swift
@@ -17,7 +17,7 @@ extension URL {
17
}
18
19
/// Opens given URL after validating whether it can be opened.
20
- @discardableResult
+ @MainActor @discardableResult
21
func open() -> Bool {
22
guard UIApplication.shared.canOpenURL(self) else {
23
return false
Template/Screens/About/AboutViewModel.swift
@@ -18,7 +18,7 @@ class AboutViewModel: ObservableObject {
@Published var activeSheet: ActiveSheet?
- func openTwitter() {
+ @MainActor func openTwitter() {
let application = UIApplication.shared
if let appURL = URL(string: MainConstants.twitterDeepLink), application.canOpenURL(appURL) {
24
application.open(appURL)
0 commit comments