diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..f46bdff Binary files /dev/null and b/.DS_Store differ diff --git a/.well-known/apple-app-site-association b/.well-known/apple-app-site-association new file mode 100644 index 0000000..ac6780c --- /dev/null +++ b/.well-known/apple-app-site-association @@ -0,0 +1,11 @@ +{ + "applinks": { + "apps": [], + "details": [ + { + "appID": "76AJ433CP5.com.kim.AsyncSwift", + "paths": [ "*" ] + } + ] + } +} \ No newline at end of file diff --git a/AsyncSwift/Info.plist b/AsyncSwift/Info.plist index 04b25f1..ad1822a 100644 --- a/AsyncSwift/Info.plist +++ b/AsyncSwift/Info.plist @@ -12,6 +12,16 @@ com.googleusercontent.apps.388113408677-32e2k6kqi1ags2n6bmompvpuu196ci0k + + CFBundleTypeRole + Editor + CFBundleURLName + Deep Link + CFBundleURLSchemes + + asyncswift + + FirebaseAppDelegateProxyEnabled diff --git a/AsyncSwift/Observed/AppData.swift b/AsyncSwift/Observed/AppData.swift index 643e9c8..ec52c39 100644 --- a/AsyncSwift/Observed/AppData.swift +++ b/AsyncSwift/Observed/AppData.swift @@ -22,10 +22,10 @@ final class AppData: ObservableObject { } func checkLink(url: URL) -> Bool { - // URL Example = https://www.asyncswift.info?tab=ticketing - // URL Example = https://www.asyncswift.info?tab=event + // URL Example = https://asyncswift.info?tab=stamp + // URL Example = https://asyncswift.info?tab=event guard URLComponents(url: url, resolvingAgainstBaseURL: true)?.host != nil else { return false } - + print(url) var queries = [String: String]() for item in URLComponents(url: url, resolvingAgainstBaseURL: true)?.queryItems ?? [] { queries[item.name] = item.value @@ -64,6 +64,7 @@ final class AppData: ObservableObject { DispatchQueue.main.async { [weak self] in guard let self = self else {return } do { + print(data) let stamp = try JSONDecoder().decode(Stamp.self, from: data) self.currentStamp = stamp } catch { diff --git a/AsyncSwift/Views/MainTabView.swift b/AsyncSwift/Views/MainTabView.swift index 167ed61..0d5e0b4 100644 --- a/AsyncSwift/Views/MainTabView.swift +++ b/AsyncSwift/Views/MainTabView.swift @@ -10,7 +10,7 @@ import SwiftUI struct MainTabView: View { @EnvironmentObject var appData: AppData var body: some View { - TabView { + TabView(selection: $appData.currentTab) { ForEach(Tab.allCases, id: \.self) { tab in tab.view.tabItem { Image(systemName: tab.systemImageName) diff --git a/apple-app-site-association b/apple-app-site-association deleted file mode 100644 index b77760d..0000000 --- a/apple-app-site-association +++ /dev/null @@ -1,17 +0,0 @@ -{ - applinks: { - details: [ - { - appIDs: ["76AJ433CP5.com.kim.AsyncSwift"], - components: [ - { - /: “*” - } - ] - } - ] - }, - "appclips": { - "apps": ["76AJ433CP5.com.kim.AsyncSwift"] - } -} \ No newline at end of file