SwiftRater alternatives and similar libraries
Based on the "Utility" category.
Alternatively, view SwiftRater alternatives based on common mentions on social networks and blogs.
-
SwifterSwift
:A handy collection of more than 360 native Swift 3 extensions to boost your productivity. -
SwiftGen-Storyboard
A tool to auto-generate Swift enums for all your Storyboards, Scenes and Segues constants + appropriate convenience accessors. -
SwiftGen
A collection of Swift tools to generate Swift code (enums for your assets, storyboards, Localizable.strings, …) -
LifetimeTracker
LifetimeTracker can surface retain cycle / memory issues right as you develop your application, and it will surface them to you immediately, so you can find them with more ease. -
SwiftLinkPreview
It makes a preview from an url, grabbing all information such as title, relevant texts and images. -
PinpointKit
An open-source iOS library in Swift that lets your testers and users send feedback with annotated screenshots and logs using a simple gesture. -
Highlighter
Highlight whatever you want! Highlighter will magically find UI objects such as UILabel, UITextView, UITexTfield, UIButton in your UITableViewCell or other Class. -
Pythonic.swift
Pythonic tool-belt for Swift: a Swift implementation of selected parts of Python standard library.
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of SwiftRater or a related project?
README
SwiftRater
SwiftRater is a class that you can drop into any iPhone app that will help remind your users to review your app on the App Store/in your app.
SwiftRater is written in pure Swift.
iOS 10.3 〜
[SwiftRater1](./Resource/later1.gif)
For iOS 10.3 devices, SwiftRater uses SKStoreReviewController.
〜 iOS 10.2
[SwiftRater2](./Resource/later2.gif)
Requirements
iOS 8.0 or later, written in Swift. Xcode 8.2 or later.
Installation
Cocoapods
SwiftRater is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SwiftRater"
Carthage
SwiftRater is compatible with Carthage. Add it to your Cartfile
:
github "takecian/SwiftRater"
Usage
1.Setup SwiftRater in AppDelegate.swift. After setting up, call SwiftRater.appLaunched()
.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
SwiftRater.daysUntilPrompt = 7
SwiftRater.usesUntilPrompt = 10
SwiftRater.significantUsesUntilPrompt = 3
SwiftRater.daysBeforeReminding = 1
SwiftRater.showLaterButton = true
SwiftRater.debugMode = true
SwiftRater.appLaunched()
return true
}
Property | Description |
---|---|
daysUntilPrompt | Shows review request if daysUntilPrompt days passed since first app launch. |
usesUntilPrompt | Shows review request if users launch more than usesUntilPrompt times. |
significantUsesUntilPrompt | Shows review request if user does significant actions more than significantUsesUntilPrompt |
You can set properties you want to apply.
Property | Description |
---|---|
debugMode | Shows review request every time. Default false, need to set false when you submit app to AppStore. |
showLaterButton | Show Later button in review request dialong, valid for iOS10.2 or before devices. |
daysBeforeReminding | Days until reminder popup if the user chooses rate later , valid for iOS10.2 or before devices. |
2.Call SwiftRater.check()
in viewDidAppear
of ViewController where you want to show review request dialog. If conditions are met, SwiftRater will show review request popup.
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
SwiftRater.check()
}
3(Optional).For significantUsesUntilPrompt
, you need to add SwiftRater.incrementSignificantUsageCount
in siginificant action for your app.
func postComment() {
// do something ..
SwiftRater.incrementSignificantUsageCount()
}
4(Optional).Call SwiftRater.rateApp(host:)
to let your users to review your app on the App Store/in your app directly.
func rateButtonDidClick(sender: UIButton) {
// do something ..
SwiftRater.rateApp(host: self)
}
Example
This example states that the rating request is only shown when the app has been launched 5 times and after 7 days, remind 5 days after if later selected.
SwiftRater.daysUntilPrompt = 7
SwiftRater.usesUntilPrompt = 5
SwiftRater.daysBeforeReminding = 5
SwiftRater.appLaunched()
If you wanted to show the request after 5 days only and remind 7 days after if later selected, you can set the following:
SwiftRater.daysUntilPrompt = 5
SwiftRater.daysBeforeReminding = 7
SwiftRater.appLaunched()
Customize text
You can customize text in review request dialog for iOS10.2 or before devices. Set text in following properties.
- SwiftRater.alertTitle
- SwiftRater.alertMessage
- SwiftRater.alertCancelTitle
- SwiftRater.alertRateTitle
- SwiftRater.alertRateLaterTitle
- SwiftRater.appName
Country code
If your app is only avaiable for some coutnries, please add country code at Setup phase.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
SwiftRater.daysUntilPrompt = 7
SwiftRater.usesUntilPrompt = 10
SwiftRater.countryCode = "fr"
SwiftRater.debugMode = true
SwiftRater.appLaunched()
return true
}
App ID
Optional, you can set App ID explicitly. If not, SwiftRater will get App ID from appstore by bundle ID.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
SwiftRater.daysUntilPrompt = 7
SwiftRater.usesUntilPrompt = 10
SwiftRater.appID = "1104775712"
SwiftRater.debugMode = true
SwiftRater.appLaunched()
return true
}
Demo
You can find Demo app in this repo.
Author
takecian, [email protected]
License
SwiftRater is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the SwiftRater README section above
are relevant to that project's source code only.