SKStore​Review​Controller Swift

In order to display Rate/Review inside the app.

You can ask users to rate or review your app while they're using it, without sending them to the App Store.You determine the points in the user experience at which it makes sense to call the API and the system takes care of the rest.

Steps to use SKStore Review Controller in our project


  1. You have to importStoreKitframework.
    import StoreKit
  2.  Ask for review by
     SKStoreReviewController.requestReview()
  3. Example
    
    import StoreKit
    
    func DisplayReviewController {
        if #available( iOS 10.3,*){ //Note: SKStoreReviewController is available in iOS 10.3 and later
            SKStoreReviewController.requestReview()
        }
    }





Popular posts from this blog

Frame vs bounds in Swift

DateFomatter in Swift

Property wrapper in Swift