Skip to content

Commit

Permalink
modernize ApplicationOpener (#74)
Browse files Browse the repository at this point in the history
Co-authored-by: Oguz Yuksel <[email protected]>
  • Loading branch information
OguzYuuksel and Oguz Yuksel authored Oct 10, 2024
1 parent 7b84174 commit 9ac488c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/UIExtensions/Helpers/ApplicationOpener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
import Foundation
import UIKit

@objc
@MainActor
public protocol ApplicationOpener {
nonisolated var openSettingsURL: String { get }
nonisolated func canOpenURL(_ url: URL) -> Bool
@available(iOSApplicationExtension, unavailable)
@objc(openURL:options:completionHandler:)
func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey: Any], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)?)
@available(iOSApplicationExtension, unavailable)
@discardableResult
func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey: Any]) async -> Bool
}

@available(iOSApplicationExtension, unavailable)
Expand Down

0 comments on commit 9ac488c

Please sign in to comment.