File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
Tiny lib to show "Rate my app" alert for macOS and iOS apps.
7
7
8
8
## SupportedOS:
9
- iOS, MacOS
9
+ iOS(?) , MacOS(>=12)
10
10
11
11
## KeyFeatures:
12
12
* 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") )
95
95
appRater = IAppRater (minLaunches : 2 ,
96
96
minDays : 2 ,
97
97
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
101
101
},
102
102
rateWndType : .appStoreWnd (appId : " 1473808464" )
103
103
)
104
104
```
105
105
* - min app launches = 2
106
106
* - 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
108
108
* 1 - if application state is .idle or .paused
109
109
* 2 - if some sessions duration is larger than 5 hrs
110
110
* 3 - if user have never rated app. But if he is rated at least once - never show "rate app" button to user
You can’t perform that action at this time.
0 commit comments