diff --git a/README.md b/README.md
index a8b8875..aed71a6 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,44 @@
# ReviewRequestSwiftUI
+[![GitHub issues](https://img.shields.io/github/issues/SNQ-2001/ReviewRequestSwiftUI)](https://github.com/SNQ-2001/ReviewRequestSwiftUI/issues)
+[![GitHub forks](https://img.shields.io/github/forks/SNQ-2001/ReviewRequestSwiftUI)](https://github.com/SNQ-2001/ReviewRequestSwiftUI/network)
+[![GitHub stars](https://img.shields.io/github/stars/SNQ-2001/ReviewRequestSwiftUI)](https://github.com/SNQ-2001/ReviewRequestSwiftUI/stargazers)
+[![GitHub license](https://img.shields.io/github/license/SNQ-2001/ReviewRequestSwiftUI)](https://github.com/SNQ-2001/ReviewRequestSwiftUI/blob/main/LICENSE)
+[![Twitter](https://img.shields.io/twitter/url?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FSNQ-2001%2FReviewRequestSwiftUI)
-## 🛠️ Usage
-**Customize Permission Texts**
+## 🖥️ Installation
+### 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:
+```Ruby
+platform :ios, '14.0'
+
+target 'Your App' do
+ use_frameworks!
+ pod 'ReviewRequestSwiftUI'
+
+end
```
+
+## 🛠️ Usage
+**Customize Texts**
+```Swift
import SwiftUI
struct ContentView: View {
diff --git a/Sources/ReviewRequestSwiftUI/BadButton.swift b/Sources/ReviewRequestSwiftUI/Classes/BadButton.swift
similarity index 87%
rename from Sources/ReviewRequestSwiftUI/BadButton.swift
rename to Sources/ReviewRequestSwiftUI/Classes/BadButton.swift
index b4bcc8b..9dc821c 100644
--- a/Sources/ReviewRequestSwiftUI/BadButton.swift
+++ b/Sources/ReviewRequestSwiftUI/Classes/BadButton.swift
@@ -9,10 +9,11 @@ import SwiftUI
struct BadButton: View {
@Binding var PushBad: Bool
+ @Environment(\.colorScheme) private var colorScheme: ColorScheme
var screenSizeConstant: CGFloat
var body: some View {
HStack(spacing: 0) {
- SVGView(name: "thumbs-down")
+ SVGView(name: colorScheme == .dark ? "thumbs-down-white" : "thumbs-down-black")
.aspectRatio(contentMode: .fit)
.foregroundColor(.black)
.font(.system(size: screenSizeConstant))
diff --git a/Sources/ReviewRequestSwiftUI/BlurView.swift b/Sources/ReviewRequestSwiftUI/Classes/BlurView.swift
similarity index 100%
rename from Sources/ReviewRequestSwiftUI/BlurView.swift
rename to Sources/ReviewRequestSwiftUI/Classes/BlurView.swift
diff --git a/Sources/ReviewRequestSwiftUI/CommentView.swift b/Sources/ReviewRequestSwiftUI/Classes/CommentView.swift
similarity index 100%
rename from Sources/ReviewRequestSwiftUI/CommentView.swift
rename to Sources/ReviewRequestSwiftUI/Classes/CommentView.swift
diff --git a/Sources/ReviewRequestSwiftUI/FooterView.swift b/Sources/ReviewRequestSwiftUI/Classes/FooterView.swift
similarity index 100%
rename from Sources/ReviewRequestSwiftUI/FooterView.swift
rename to Sources/ReviewRequestSwiftUI/Classes/FooterView.swift
diff --git a/Sources/ReviewRequestSwiftUI/GoodButton.swift b/Sources/ReviewRequestSwiftUI/Classes/GoodButton.swift
similarity index 89%
rename from Sources/ReviewRequestSwiftUI/GoodButton.swift
rename to Sources/ReviewRequestSwiftUI/Classes/GoodButton.swift
index 4c40359..67815ca 100644
--- a/Sources/ReviewRequestSwiftUI/GoodButton.swift
+++ b/Sources/ReviewRequestSwiftUI/Classes/GoodButton.swift
@@ -10,10 +10,11 @@ import StoreKit
struct GoodButton: View {
@Binding var ShowReviewRequest: Bool
+ @Environment(\.colorScheme) private var colorScheme: ColorScheme
var screenSizeConstant: CGFloat
var body: some View {
HStack(spacing: 0) {
- SVGView(name: "thumbs-up")
+ SVGView(name: colorScheme == .dark ? "thumbs-up-white" : "thumbs-up-black")
.aspectRatio(contentMode: .fit)
.foregroundColor(.black)
.font(.system(size: screenSizeConstant))
diff --git a/Sources/ReviewRequestSwiftUI/HeaderView.swift b/Sources/ReviewRequestSwiftUI/Classes/HeaderView.swift
similarity index 100%
rename from Sources/ReviewRequestSwiftUI/HeaderView.swift
rename to Sources/ReviewRequestSwiftUI/Classes/HeaderView.swift
diff --git a/Sources/ReviewRequestSwiftUI/ReviewRequestModifier.swift b/Sources/ReviewRequestSwiftUI/Classes/ReviewRequestModifier.swift
similarity index 100%
rename from Sources/ReviewRequestSwiftUI/ReviewRequestModifier.swift
rename to Sources/ReviewRequestSwiftUI/Classes/ReviewRequestModifier.swift
diff --git a/Sources/ReviewRequestSwiftUI/ReviewRequestSwiftUI.swift b/Sources/ReviewRequestSwiftUI/Classes/ReviewRequestSwiftUI.swift
similarity index 100%
rename from Sources/ReviewRequestSwiftUI/ReviewRequestSwiftUI.swift
rename to Sources/ReviewRequestSwiftUI/Classes/ReviewRequestSwiftUI.swift
diff --git a/Sources/ReviewRequestSwiftUI/ReviewView.swift b/Sources/ReviewRequestSwiftUI/Classes/ReviewView.swift
similarity index 100%
rename from Sources/ReviewRequestSwiftUI/ReviewView.swift
rename to Sources/ReviewRequestSwiftUI/Classes/ReviewView.swift
diff --git a/Sources/ReviewRequestSwiftUI/SVGView.swift b/Sources/ReviewRequestSwiftUI/Classes/SVGView.swift
similarity index 89%
rename from Sources/ReviewRequestSwiftUI/SVGView.swift
rename to Sources/ReviewRequestSwiftUI/Classes/SVGView.swift
index 11a1eb0..4ffab3a 100644
--- a/Sources/ReviewRequestSwiftUI/SVGView.swift
+++ b/Sources/ReviewRequestSwiftUI/Classes/SVGView.swift
@@ -27,7 +27,7 @@ struct SVGView: UIViewControllerRepresentable {
fatalError("init(coder:) has not been implemented")
}
override func loadView() {
- view = UIImageView(image: UIImage(named: name))
+ view = UIImageView(image: UIImage(named: name, in: Bundle.module, compatibleWith: nil))
}
}
}
diff --git a/Sources/ReviewRequestSwiftUI/TitleView.swift b/Sources/ReviewRequestSwiftUI/Classes/TitleView.swift
similarity index 100%
rename from Sources/ReviewRequestSwiftUI/TitleView.swift
rename to Sources/ReviewRequestSwiftUI/Classes/TitleView.swift
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/Contents.json b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-black.imageset/Contents.json b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-black.imageset/Contents.json
new file mode 100644
index 0000000..65db0fa
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-black.imageset/Contents.json
@@ -0,0 +1,21 @@
+{
+ "images" : [
+ {
+ "filename" : "thumbs-down-black.svg",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-black.imageset/thumbs-down-black.svg b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-black.imageset/thumbs-down-black.svg
new file mode 100644
index 0000000..03ee4b2
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-black.imageset/thumbs-down-black.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-white.imageset/Contents.json b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-white.imageset/Contents.json
new file mode 100644
index 0000000..e75f222
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-white.imageset/Contents.json
@@ -0,0 +1,21 @@
+{
+ "images" : [
+ {
+ "filename" : "thumbs-down-white.svg",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-white.imageset/thumbs-down-white.svg b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-white.imageset/thumbs-down-white.svg
new file mode 100644
index 0000000..e1be766
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-down-white.imageset/thumbs-down-white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-black.imageset/Contents.json b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-black.imageset/Contents.json
new file mode 100644
index 0000000..de2e8ff
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-black.imageset/Contents.json
@@ -0,0 +1,21 @@
+{
+ "images" : [
+ {
+ "filename" : "thumbs-up-black.svg",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-black.imageset/thumbs-up-black.svg b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-black.imageset/thumbs-up-black.svg
new file mode 100644
index 0000000..2d7da50
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-black.imageset/thumbs-up-black.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-white.imageset/Contents.json b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-white.imageset/Contents.json
new file mode 100644
index 0000000..b651257
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-white.imageset/Contents.json
@@ -0,0 +1,21 @@
+{
+ "images" : [
+ {
+ "filename" : "thumbs-up-white.svg",
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-white.imageset/thumbs-up-white.svg b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-white.imageset/thumbs-up-white.svg
new file mode 100644
index 0000000..fbfdd3f
--- /dev/null
+++ b/Sources/ReviewRequestSwiftUI/Resources/Media.xcassets/thumbs-up-white.imageset/thumbs-up-white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Tests/ReviewRequestSwiftUITests/ReviewRequestSwiftUITests.swift b/Tests/ReviewRequestSwiftUITests/ReviewRequestSwiftUITests.swift
index d96edf6..c0b44bb 100644
--- a/Tests/ReviewRequestSwiftUITests/ReviewRequestSwiftUITests.swift
+++ b/Tests/ReviewRequestSwiftUITests/ReviewRequestSwiftUITests.swift
@@ -6,6 +6,6 @@ final class ReviewRequestSwiftUITests: XCTestCase {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
- XCTAssertEqual(ReviewRequestSwiftUI().text, "Hello, World!")
+ XCTAssert(true, "Pass")
}
}