Skip to content

Commit

Permalink
[FEAT] Scheme 추가(#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoonAh-dev committed Dec 22, 2022
1 parent e710105 commit 4ac648e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Manito/Manito/Global/Supports/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.TeamFirefighter.Manito</string>
<key>CFBundleURLSchemes</key>
<array>
<string>manito</string>
</array>
</dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram-stories</string>
Expand Down
14 changes: 14 additions & 0 deletions Manito/Manito/Global/Supports/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func sceneWillEnterForeground(_ scene: UIScene) { }

func sceneDidEnterBackground(_ scene: UIScene) { }

func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
var host: String

if #available(iOS 16.0, *) {
host = URLContexts.first?.url.host() ?? ""
} else {
host = URLContexts.first?.url.host ?? ""
}

if host != "" {

}
}
}

extension SceneDelegate {
Expand Down

0 comments on commit 4ac648e

Please sign in to comment.