Skip to content

Commit e8bd2ea

Browse files
committed
Fixed Swift 6 issues
1 parent 11a75bf commit e8bd2ea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Template/Extensions/URL.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extension URL {
1717
}
1818

1919
/// Opens given URL after validating whether it can be opened.
20-
@discardableResult
20+
@MainActor @discardableResult
2121
func open() -> Bool {
2222
guard UIApplication.shared.canOpenURL(self) else {
2323
return false

Template/Screens/About/AboutViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AboutViewModel: ObservableObject {
1818

1919
@Published var activeSheet: ActiveSheet?
2020

21-
func openTwitter() {
21+
@MainActor func openTwitter() {
2222
let application = UIApplication.shared
2323
if let appURL = URL(string: MainConstants.twitterDeepLink), application.canOpenURL(appURL) {
2424
application.open(appURL)

0 commit comments

Comments
 (0)