There is no way for you to tell if it is being displayed.
You can read the documentation on SKStoreReviewController
here, which shows only the requestReview() function you use to call it.
But, if you want to dig deeper, I provide the following screenshot which shows what the Debug View Hierarchy looks like while displaying the request.
What this tells you, is that there is nothing you can try to dig down to via properties such as presentedViewController
in an attempt to divine if the screen is being presented.
Normally, if you are presenting a UIAlertController
, or any UI element for that matter, you will see the UI pieces stacked together that form it, indicating that you can access associated properties to find out what is being presented. With this class, none of that is provided so your app is oblivious to what is going on.
The following screenshot illustrates what a view hierarchy looks like when you have multiple elements on the screen:
As Apple alludes to in the class documentation, you need to develop your own logic for presenting it at a time when it will not present the issue you are currently experiencing.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…