Latest 1.0.5
License MIT
Platforms ios 10.0
Frameworks UIKit

[Swift Version]()
[iOS 10+]()
CodeClimate Badge
Build Status


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


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

pod 'StanwoodDialog'


Add import StanwoodDialog and call the method bellow from wherever you are calling AppDelegate‘s applicationDidBecomeAvailable:

    if RatingDialog.shouldShow(onLaunch: 5) {
        let text1 = "Hi there,nmy name is John Appleseed,nthe developer of this app."
        let text2 = "Independent developers like menrely heavily on good ratings in the app store"
        let text3 = "so that we can continue working on apps.nIf you like this app, I'd be thrillednif you left a positive rating."
        let text4 = "the stars would be enough, it will only take a few seconds."

        let cancel = "Cancel"
        let accept = "Rate the app"

        let faceUrlString = ""
        let bannerUrlString = ""
        let appID = "<YOUR_APPID>"

        .set(paragraph1: text1)
        .set(paragraph2: text2)
        .set(paragraph3: text3)
        .set(paragraph4: text4)
        .set(cancelText: cancel)
        .set(okText: accept)
        .set(faceUrl: faceUrlString)
        .set(bannerUrl: bannerUrlString)
        .buildAppStoreUrl(with: appID)
        .set(rootView: (window?.rootViewController?.view)!)

Ideally you would be fetching each one of these parameters remotely. For instance, from Firebase RemoteConfig to do some A/B testing and/or from a service like to provide internationalization.

If you don’t have a URL for the profile and banner images, you may upload these to Firebase Storage (go to Store section in Firebase and click on [Upload Image]):

  • the profile image should be 300×300 pixels (this will cover the 3 variations for 100×100 points)
  • the banner image should be 300×1125 pixels (this will cover the 3 variations for 100×375 points)


Using a negative value in RatingDialog.shouldShow(onLaunch: -1) will result in the Rating Dialog being shown everytime.

Also, while in Debug, the launch count doesn’t need 30 minutes from the last launch to increase its count.


Eugène Peschard, [email protected]


StanwoodDialog is under MIT licence. See the LICENSE file for more info.

Latest podspec

    "name": "StanwoodDialog",
    "version": "1.0.5",
    "summary": "Library to show a rating dialog prompt like the one used in On Air.",
    "description": "This library allows to show a rating dialog prompt like the one used in On Air. nThis allows a more personal approach and dismisses automatically when no interaction.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "stanwood": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.5"
    "platforms": {
        "ios": "10.0"
    "swift_version": "4.2",
    "source_files": "Stanwood_Dialog_iOS/Classes/**/*.{swift}",
    "resource_bundles": {
        "Stanwood_Dialog_iOS": [
    "frameworks": "UIKit"

Pin It on Pinterest

Share This