Giter Site home page Giter Site logo

eggrating's Introduction

EggRating

Let's increase your iOS app reviews with EggRating.

Version License Platform

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 ๐Ÿ˜‰๐Ÿ‘

Screenshots

Requirements

  • iOS 8.0+
  • Swift 3.0+

Installation

EggRating is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'EggRating'

Usage

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")
    }
}

Customisation

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 display EggRating after first used date, default is 10 days.

  • remindPeriod : A certain number of times to display EggRating 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 of EggRating dialog.

  • descriptionLabelText : The description of EggRating dialog.

  • dismissButtonTitleText : The dismiss button title of EggRating dialog.

  • rateButtonTitleText : The rate button title of EggRating 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 display EggRating after first used date in minute. This can be set only when debug mode is on.

  • minuteRemindPeriod : A certain number of times to display EggRating 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.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Credits

License

EggRating is available under the MIT license. See the LICENSE file for more info.

eggrating's People

Contributors

naluinui avatar burakgunduztr avatar tspinelli avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.