callAsFunction()
Tells StoreKit to ask the user to rate or review your app, if appropriate.
Declaration
@MainActor func callAsFunction()Discussion
Don’t call this method directly. SwiftUI calls it when you call the RequestReviewAction instance that you get from the requestReview environment value.
For information about how Swift uses the callAsFunction()method to simplify call site syntax, see Methods with Special Names in The Swift Programming Language.