mirror of
https://github.com/VernissageApp/Vernissage.git
synced 2024-12-28 18:00:53 +01:00
21 lines
546 B
Swift
21 lines
546 B
Swift
//
|
|
// https://mczachurski.dev
|
|
// Copyright © 2022 Marcin Czachurski and the repository contributors.
|
|
// Licensed under the MIT License.
|
|
//
|
|
|
|
import SwiftUI
|
|
import MastodonSwift
|
|
import OAuthSwift
|
|
|
|
class SceneDelegate: NSObject, UISceneDelegate {
|
|
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
|
|
guard let url = URLContexts.first?.url else {
|
|
return
|
|
}
|
|
if url.host == "oauth-callback" {
|
|
OAuthSwift.handle(url: url)
|
|
}
|
|
}
|
|
}
|