QR Code error views (#2678)

Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
Mauro
2024-04-11 10:32:56 +02:00
committed by GitHub
parent eda7d59518
commit 9bc24e2038
21 changed files with 202 additions and 25 deletions
@@ -24,6 +24,8 @@ protocol ApplicationProtocol {
func endBackgroundTask(_ identifier: UIBackgroundTaskIdentifier)
func open(_ url: URL)
func openAppSettings()
var backgroundTimeRemaining: TimeInterval { get }
@@ -34,4 +36,11 @@ extension UIApplication: ApplicationProtocol {
func open(_ url: URL) {
open(url, options: [:], completionHandler: nil)
}
func openAppSettings() {
guard let url = URL(string: UIApplication.openSettingsURLString) else {
return
}
open(url)
}
}