Skip to content

SNQ-2001/ReviewRequestSwiftUI

Repository files navigation

ReviewRequestSwiftUI

Version License Twitter

ReviewRequestSwiftUI

This project was created with reference to PermissionsSwiftUI.

If you like the project, please Star ⭐️

Requirements

  • iOS 14

Install

- Swift Package Manager -

You can install ReviewRequestSwiftUI into your Xcode project via SPM. To learn more about SPM, click here

For Xcode 12

  1. open your project and navigate to File → Swift Packages → Add Package Dependency...
  2. Paste the repository URL (https://github.com/SNQ-2001/ReviewRequestSwiftUI) and click Next.

For Xcode 13

  1. navigate to Files → Add Package
  2. Paste the repository URL (https://github.com/SNQ-2001/ReviewRequestSwiftUI) and click Next.

- CocoaPods -

You can also install ReviewRequestSwiftUI with CocoaPods.

Add pod 'ReviewRequestSwiftUI' in your podfile:

platform :ios, '14.0'

target 'Your App' do
  use_frameworks!
  pod 'ReviewRequestSwiftUI'

end

🛠️ Usage

import SwiftUI

struct ContentView: View {
   @State var ShowReviewRequest = false
   var body: some View {
        Button(action: {
            ShowReviewRequest = true
        }) {
            Text("Review")
        }
        .ReviewRequest(
            ShowReviewRequest: $ShowReviewRequest,
            Title: "App Review",
            Header: "Thank you for your interest",
            Footer: "Please help us improve the user experience",
            Comment: "Thank you for your cooperation"
        )
   }
}
1 2
Simulator Screen Shot - iPhone 12 - 2022-04-18 at 00 45 37 Simulator Screen Shot - iPhone 12 - 2022-04-18 at 00 45 43