Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
📝작업 내용
SwiftRater 라이브러리를 이용하여, 식단 화면에서 앱스토어 리뷰 작성을 요청하는 모달을 띄웁니다.
AppDelegate에서 리뷰 작성 요청 모달을 띄우는 조건을 설정합니다.
SwiftRater.daysUntilPrompt = 7(앱을 설치하고 7일 이상 지남)SwiftRater.significantUsesUntilPrompt = 10(특정 기능(식단)을 10회 이상 사용함)//SwiftRater.debugMode = true(테스트용, 항상 모달을 띄움)SwiftRater.appLaunched()ShopViewController의 viewDidLoad에서 특정 기능(식단)의 사용 횟수를 증가시킵니다.
SwiftRater.incrementSignificantUsageCount()ShopViewController의 viewDidAppear에서 앱스토어 리뷰 작성 요청 모달을 띄웁니다.
DispatchQueue.main.asyncAfter(deadline: .now() + 5) { [weak self] inif let self, self.isOnScreen {SwiftRater.check()}}화면에 5초 이상 머무르고 있으며, AppDelegate에서 설정한 조건을 만족하면 StoreKit에 모달을 띄울 것을 요청합니다.
StoreKit은 애플 정책에 따라 모달을 띄울지 결정합니다.
따라서 AppDelegate에서 설정한 조건을 만족해도 모달이 뜨지 않을 수 있습니다.
스크린샷 (선택)
(좌) iOS18 이하 / (우) iOS26 이상


💬리뷰 요구사항(선택)
AppDelegate에서 설정한 조건을 임의로 정했습니다! 피드백 환영합니다!