From 4599716d179d948163360787c5992213794a2c53 Mon Sep 17 00:00:00 2001 From: E-know Date: Tue, 20 Sep 2022 18:35:28 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[Build]=20Remove=20app=20=EC=B0=B8=EC=A1=B0?= =?UTF-8?q?=20=EB=B0=8F=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .well-known/apple-app-site-association | 11 ----------- CNAME | 1 - 2 files changed, 12 deletions(-) delete mode 100644 .well-known/apple-app-site-association delete mode 100644 CNAME diff --git a/.well-known/apple-app-site-association b/.well-known/apple-app-site-association deleted file mode 100644 index ac6780c..0000000 --- a/.well-known/apple-app-site-association +++ /dev/null @@ -1,11 +0,0 @@ -{ - "applinks": { - "apps": [], - "details": [ - { - "appID": "76AJ433CP5.com.kim.AsyncSwift", - "paths": [ "*" ] - } - ] - } -} \ No newline at end of file diff --git a/CNAME b/CNAME deleted file mode 100644 index bb5d31e..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -asyncswift.info \ No newline at end of file From 95d03a3dd766dde6069cd6d19a311177386f4279 Mon Sep 17 00:00:00 2001 From: E-know Date: Tue, 20 Sep 2022 18:36:36 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[Fix]=20Stamp=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20=EC=A0=84,=20currentStamp=20=EC=B2=B4?= =?UTF-8?q?=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsyncSwift/Observed/AppData.swift | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/AsyncSwift/Observed/AppData.swift b/AsyncSwift/Observed/AppData.swift index ec52c39..bf1e865 100644 --- a/AsyncSwift/Observed/AppData.swift +++ b/AsyncSwift/Observed/AppData.swift @@ -13,19 +13,22 @@ final class AppData: ObservableObject { @Published var currentTab: Tab = .event private var currentStamp: Stamp? - lazy var isStampExist: Bool = { - KeyChain.shared.getItem(key: currentStamp?.title) != nil - }() + var isStampExist: Bool { + if currentStamp == nil { + fetchCurrentStamp() + } + + return KeyChain.shared.getItem(key: currentStamp?.title) != nil + } init(){ fetchCurrentStamp() } func checkLink(url: URL) -> Bool { - // URL Example = https://asyncswift.info?tab=stamp - // URL Example = https://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 @@ -36,7 +39,6 @@ final class AppData: ObservableObject { switch queries["tab"] { case Tab.stamp.rawValue: KeyChain.shared.addItem(key: currentStampName, pwd: "true") ? print("Adding Stamp History KeyChain is Success") : print("Adding Stamp History is Fail") - self.isStampExist = true currentTab = .stamp case Tab.event.rawValue: currentTab = .event