Skip to content

Commit b64e338

Browse files
committed
README.md
1 parent 2c78cba commit b64e338

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Tiny lib to show "Rate my app" alert for macOS and iOS apps.
77

88
## SupportedOS:
9-
iOS, MacOS
9+
iOS(?), MacOS(>=12)
1010

1111
## KeyFeatures:
1212
* Ability to set minimal amount of app launches before yout app perform request to rate your app
@@ -95,16 +95,16 @@ appRater = IAppRater(...., rateWndType: .appStoreWnd(appId: "1473808464") )
9595
appRater = IAppRater(minLaunches: 2,
9696
minDays: 2,
9797
other: { me in // 0
98-
return (MainViewModel.shared.appState == .Idle || MainViewModel.shared.appState == .Paused) && // 1
99-
Stats.shared.sessions.map{ $0.duration }.sum() > TimeInterval(hrs: 5) && // 2
100-
me.lastReviewDate == nil // 3
98+
(MainViewModel.shared.appState == .Idle || MainViewModel.shared.appState == .Paused) && // 1
99+
Stats.shared.sessions.map{ $0.duration }.sum() > TimeInterval(hrs: 5) && // 2
100+
me.lastReviewDate == nil // 3
101101
},
102102
rateWndType: .appStoreWnd(appId: "1473808464")
103103
)
104104
```
105105
* - min app launches = 2
106106
* - min days after first app launch = 2
107-
* 0 - input of IAppRater's "self" for using some properties if needed some custom purposes with tham
107+
* 0 - input of IAppRater's "self" for using some properties if needed for some custom purposes with them
108108
* 1 - if application state is .idle or .paused
109109
* 2 - if some sessions duration is larger than 5 hrs
110110
* 3 - if user have never rated app. But if he is rated at least once - never show "rate app" button to user

0 commit comments

Comments
 (0)