Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swordray/jxreviewcontroller
Request rating by 1-5 stars.
https://github.com/swordray/jxreviewcontroller
ios skstorereviewcontroller storekit swift
Last synced: about 1 month ago
JSON representation
Request rating by 1-5 stars.
- Host: GitHub
- URL: https://github.com/swordray/jxreviewcontroller
- Owner: swordray
- License: mit
- Created: 2020-07-03T07:51:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T15:25:36.000Z (about 2 years ago)
- Last Synced: 2024-10-12T22:04:57.172Z (2 months ago)
- Topics: ios, skstorereviewcontroller, storekit, swift
- Language: Swift
- Homepage:
- Size: 37.1 KB
- Stars: 16
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JXReviewController
Request rating by 1-5 stars.
[![CI Status](https://img.shields.io/travis/swordray/JXReviewController.svg?style=flat)](https://travis-ci.org/swordray/JXReviewController)
[![Version](https://img.shields.io/cocoapods/v/JXReviewController.svg?style=flat)](https://cocoapods.org/pods/JXReviewController)
[![License](https://img.shields.io/cocoapods/l/JXReviewController.svg?style=flat)](https://cocoapods.org/pods/JXReviewController)
[![Platform](https://img.shields.io/cocoapods/p/JXReviewController.svg?style=flat)](https://cocoapods.org/pods/JXReviewController)## Requirements
* iOS 13+
## Installation
JXReviewController is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile:
```ruby
pod 'JXReviewController'
```## Usage
* Present a `JXReviewController` instance from your view controller.
```swift
import JXReviewControllerclass ViewController: UIViewController {
func requestReview() {
let reviewController = JXReviewController()
reviewController.image = UIImage(systemName: "app.fill")
reviewController.title = "Enjoy it?"
reviewController.message = "Tap a star to rate it."
reviewController.delegate = self
present(reviewController, animated: true)
}
}
```* Receive feedbacks by implimenting `JXReviewControllerDelegate`.
```swift
extension ViewController: JXReviewControllerDelegate {func reviewController(_ reviewController: JXReviewController, didSelectWith point: Int) {
print("Did select with \(point) point(s).")
}func reviewController(_ reviewController: JXReviewController, didCancelWith point: Int) {
print("Did cancel with \(point) point(s).")
}func reviewController(_ reviewController: JXReviewController, didSubmitWith point: Int) {
print("Did submit with \(point) point(s).")
}
}
```## Author
Jianqiu Xiao, [email protected]
## Sponsors
* [BaiLu ShuYuan](https://bailushuyuan.org)
## License
JXReviewController is available under the MIT license. See the LICENSE file for more info.