🤕
This library is deprecated. Anyone who wants a tool for ratings and reviews, please use the official one from Apple instead: https://developer.apple.com/app-store/ratings-and-reviews/
Let's increase your iOS app reviews with EggRating
.
EggRating
is an iOS app review tool written in Swift. EggRating
will prompt users to rate the app after they have used it a certain number of times or after a set time period. If the user rates more than a certain number, EggRating
will take them right to the app store where they can leave their good review 😉👍
- iOS 8.0+
- Swift 3.0+
EggRating is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'EggRating'
1., Import EggRating
in AppDelegate
file and in application:didFinishLaunchingWithOptions:
initialize EggRating
with your itunesId and other properties you want to customize
EggRating.itunesId = "123456789"
EggRating.minRatingToAppStore = 3.5
2., Import EggRating
in view controller file:
import EggRating
3., Use the following to display the EggRating
automatically (with the conditions):
EggRating.promptRateUsIfNeeded(in: self)
4., To show an EggRating
immediately:
EggRating.promptRateUs(in: self)
5., To access EggRating
protocol, implement EggRatingDelegate
:
EggRating.delegate = self
extension ViewController: EggRatingDelegate {
func didRate(rating: Double) {
print("didRate: \(rating)")
}
func didRateOnAppStore() {
print("didRateOnAppStore")
}
func didIgnoreToRate() {
print("didIgnoreToRate")
}
func didIgnoreToRateOnAppStore() {
print("didIgnoreToRateOnAppStore")
}
func didDissmissThankYouDialog() {
print("didDissmissThankYouDialog")
}
}
EggRating
also provides a property set for a customization usage:
-
itunesId
: The iTunes ID of the application (required). -
delegate
: Register in order to listen to rating actions. -
minRatingToAppStore
: Minimum score to bring user to review on the App Store, default is 4.0. -
daysUntilPrompt
: A certain number of times to displayEggRating
after first used date, default is 10 days. -
remindPeriod
: A certain number of times to displayEggRating
again, default is 10 days. -
starFillColor
: The color of selected stars, default is yellow. -
starNormalColor
: The color of normal stars, default is clear. -
starBorderColor
: The color of star border, default is yellow. -
titleLabelText
: The title ofEggRating
dialog. -
descriptionLabelText
: The description ofEggRating
dialog. -
dismissButtonTitleText
: The dismiss button title ofEggRating
dialog. -
rateButtonTitleText
: The rate button title ofEggRating
dialog. -
thankyouTitleLabelText
: The thank you title. -
thankyouDescriptionLabelText
: The thank you description. -
thankyouDismissButtonTitleText
: The thank you dismiss button. -
appStoreTitleLabelText
: The rate on app store title. -
appStoreDescriptionLabelText
: The rate on app store description. -
appStoreDismissButtonTitleText
: The rate on app store dismiss button title. -
appStoreRateButtonTitleText
: The rate on app store rate button title. -
debugMode
: The debug mode, default is false. -
minuteUntilPrompt
: A certain number of times to displayEggRating
after first used date in minute. This can be set only when debug mode is on. -
minuteRemindPeriod
: A certain number of times to displayEggRating
again in minute. This can be set only when debug mode is on. -
appVersion
: The application version. This can be set only when debug mode is on. -
shouldShowThankYouAlertController
: The condition to show thank you alert dialog after user rated poor score.
To run the example project, clone the repo, and run pod install
from the Example directory first.
- The rating stars are from RateView.
- The star in the App Icon of an example project is made by Maxim Basinski from www.flaticon.com
EggRating is available under the MIT license. See the LICENSE file for more info.