Skip to content

Commit

Permalink
[Add] #311 앱스토어에 연결하는 합수
Browse files Browse the repository at this point in the history
  • Loading branch information
isakatty committed May 26, 2024
1 parent 976c89e commit a215197
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Projects/App/Sources/AppStoreCheck.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

0 comments on commit a215197

Please sign in to comment.