From a21519760763b71cb29b22b7f8cf56c892e47497 Mon Sep 17 00:00:00 2001 From: Jisoo Ham <133845468+isakatty@users.noreply.github.com> Date: Sun, 26 May 2024 14:05:40 +0900 Subject: [PATCH] =?UTF-8?q?[Add]=20#311=20=EC=95=B1=EC=8A=A4=ED=86=A0?= =?UTF-8?q?=EC=96=B4=EC=97=90=20=EC=97=B0=EA=B2=B0=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=ED=95=A9=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/App/Sources/AppStoreCheck.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Projects/App/Sources/AppStoreCheck.swift b/Projects/App/Sources/AppStoreCheck.swift index e45bbcdd..d82907dc 100644 --- a/Projects/App/Sources/AppStoreCheck.swift +++ b/Projects/App/Sources/AppStoreCheck.swift @@ -48,4 +48,15 @@ public final class AppStoreCheck { task.resume() } + + /// URL을 통해 앱스토어 오픈 + static public func openAppStore() { + guard let appleID, + let url = URL(string: AppStoreCheck.appStoreURLString + appleID) + else { return } + + if UIApplication.shared.canOpenURL(url) { + UIApplication.shared.open(url) + } + } }