Latest 0.1.1
Homepage https://github.com/nbolatov/RPInteraction
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform
Build Status

demo

Overview

Review page interaction – handy and pretty way to ask for review.
Inspired by dribbble shot.

Requirements

  • iOS8

Installation

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

pod 'RPInteraction'

Usage

@import RPInteraction;

RPViewController *vc = [RPViewController new];

[vc onConfirmHandler:^(RPRate rate) {
    switch (rate) {
        case RPRateBad:
            titleLabel.text = @"BAD";
            break;
        case RPRateUgh:
            titleLabel.text = @"UGH";
            break;
        case RPRateOk:
            titleLabel.text = @"OK";
            break;
        case RPRateGood:
            titleLabel.text = @"GOOD";
            break;
    }
    [self dismissViewControllerAnimated:YES completion:nil];
}];

[vc onCancelHandler:^{
    [self dismissViewControllerAnimated:YES completion:nil];
}];

[self presentViewController:vc animated:YES completion:nil];

Available properties

Property Type Default Value
rateTitle NSString How was your experience with us?
badTitle NSString BAD
ughTitle NSString UGH
okTitle NSString OK
goodTitle NSString GOOD
confirmTitle NSString SUBMIT
rateTitleFont UIFont [UIFont systemFontOfSize:24]
confirmTitleFont UIFont [UIFont systemFontOfSize:24]
backgroundColor UIColor #FFFFFF
closeIconColor UIColor #656565
rateTitleColor UIColor #656565
reelTitleColor UIColor #FFFFFF
confirmTitleColor UIColor #FFFFFF
badTitleColor UIColor #FE5C6E
ughTitleColor UIColor #F6BC7E
okTitleColor UIColor #28CDFC
goodTitleColor UIColor #41F8C7
badStartGradientColor UIColor #FE0D46
badEndGradientColor UIColor #FEAD96
ughStartGradientColor UIColor #F9D975
ughEndGradientColor UIColor #F39F86
okStartGradientColor UIColor #12E6F9
okEndGradientColor UIColor #41B0FD
goodStartGradientColor UIColor #3EE882
goodEndGradientColor UIColor #3DF9CF

Example Project

An example project is included with this repo. To run the example project, clone the repo, and run pod install from the Example directory first.

Author

nbolatov, [email protected]

License

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

Latest podspec

{
    "name": "RPInteraction",
    "version": "0.1.1",
    "summary": "Review page interaction - handy and pretty way to ask for review.",
    "description": "Review page interaction - handy and pretty way to ask for review.nInspired by https://dribbble.com/shots/4332677-Review-Page-Interaction.nHow to use:n1. Create an instance of RPViewController()n2. Set titles, fonts and colorsn3. Present it!",
    "homepage": "https://github.com/nbolatov/RPInteraction",
    "screenshots": "https://cdn.dribbble.com/users/1233499/screenshots/4332677/attachments/987086/attachment.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "nbolatov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nbolatov/RPInteraction.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RPInteraction/Classes/**/*",
    "resource_bundles": {
        "RPInteraction": [
            "RPInteraction/Assets/*.png"
        ]
    },
    "requires_arc": true,
    "ios": {
        "frameworks": [
            "UIKit",
            "Foundation"
        ]
    }
}

Pin It on Pinterest

Share This