This project was created with reference to PermissionsSwiftUI.
If you like the project, please Star ⭐️
- iOS 14
- Swift Package Manager -
You can install ReviewRequestSwiftUI into your Xcode project via SPM. To learn more about SPM, click here
For Xcode 12
- open your project and navigate to File → Swift Packages → Add Package Dependency...
- Paste the repository URL (https://github.com/SNQ-2001/ReviewRequestSwiftUI) and click Next.
For Xcode 13
- navigate to Files → Add Package
- 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
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 |
---|---|