Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nurdabolatov/RPInteraction
Review page interaction - handy and pretty way to ask for review.
https://github.com/nurdabolatov/RPInteraction
animations cocoapod ios objective-c rate review review-page smile swift
Last synced: 15 days ago
JSON representation
Review page interaction - handy and pretty way to ask for review.
- Host: GitHub
- URL: https://github.com/nurdabolatov/RPInteraction
- Owner: nurdabolatov
- License: mit
- Created: 2018-08-01T10:32:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T10:09:19.000Z (over 6 years ago)
- Last Synced: 2024-05-22T02:20:43.333Z (7 months ago)
- Topics: animations, cocoapod, ios, objective-c, rate, review, review-page, smile, swift
- Language: Objective-C
- Size: 3.29 MB
- Stars: 28
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - RPInteraction - Review page interaction - handy and pretty way to ask for review. (UI / Rating Stars)
README
# RPInteraction
[![Version](https://img.shields.io/cocoapods/v/RPInteraction.svg?style=flat)](https://cocoapods.org/pods/RPInteraction)
[![License](https://img.shields.io/cocoapods/l/RPInteraction.svg?style=flat)](https://cocoapods.org/pods/RPInteraction)
[![Platform](https://img.shields.io/cocoapods/p/RPInteraction.svg?style=flat)](https://cocoapods.org/pods/RPInteraction)
[![Build Status](https://travis-ci.com/nbolatov/RPInteraction.svg?branch=master)](https://travis-ci.com/nbolatov/RPInteraction)![demo](Screenshots/rpinteraction.gif)
## Overview
Review page interaction - handy and pretty way to ask for review.
Inspired by [dribbble shot](https://dribbble.com/shots/4332677-Review-Page-Interaction).## Requirements
* iOS8
## Installation
RPInteraction is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'RPInteraction'
```## Usage
```Objective-C
@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.