Skip to content

Commit b27e1db

Browse files
authored
Merge pull request #133 from teamCA-PIN/feature/#111
Feature/#111
2 parents c793875 + 9529745 commit b27e1db

File tree

8 files changed

+30
-21
lines changed

8 files changed

+30
-21
lines changed

β€ŽCA-PIN_IOS/CA-PIN_IOS.xcodeproj/project.pbxprojβ€Ž

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@
15221522
CURRENT_PROJECT_VERSION = 7;
15231523
DEVELOPMENT_TEAM = VTJLBZ2Q3F;
15241524
INFOPLIST_FILE = "CA-PIN_IOS/Supports/Info.plist";
1525-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
1525+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
15261526
LD_RUNPATH_SEARCH_PATHS = (
15271527
"$(inherited)",
15281528
"@executable_path/Frameworks",
@@ -1548,15 +1548,14 @@
15481548
CURRENT_PROJECT_VERSION = 7;
15491549
DEVELOPMENT_TEAM = VTJLBZ2Q3F;
15501550
INFOPLIST_FILE = "CA-PIN_IOS/Supports/Info.plist";
1551-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
1551+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
15521552
LD_RUNPATH_SEARCH_PATHS = (
15531553
"$(inherited)",
15541554
"@executable_path/Frameworks",
15551555
);
15561556
MARKETING_VERSION = 1.0.0;
1557-
PRODUCT_BUNDLE_IDENTIFIER = CAPIN.dist;
15581557
PRODUCT_NAME = "$(TARGET_NAME)";
1559-
PROVISIONING_PROFILE_SPECIFIER = "AppStore CAPIN";
1558+
PROVISIONING_PROFILE_SPECIFIER = "";
15601559
SWIFT_VERSION = 5.0;
15611560
TARGETED_DEVICE_FAMILY = 1;
15621561
};

β€ŽCA-PIN_IOS/CA-PIN_IOS/Screens/Mypage/Cells/MyPage/Review/MyReviewTableViewCell.swiftβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ extension MyReviewTableViewCell {
232232
writeVC.content = (self.reviewModel?.content)!
233233
writeVC.ratingValue = self.reviewModel!.rating
234234
writeVC.reviewId = self.reviewModel!.id
235+
writeVC.recommend = self.reviewModel!.recommend ?? []
235236
if self.reviewModel?.imgs == [] {
236237
for imagePath in (self.reviewModel!.imgs)! {
237238
let image = UIImageView()

β€ŽCA-PIN_IOS/CA-PIN_IOS/Screens/WriteReview/ViewControllers/WriteReviewViewController.swiftβ€Ž

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ class WriteReviewViewController: UIViewController {
104104
override func viewDidLoad() {
105105
self.view.backgroundColor = .white
106106
super.viewDidLoad()
107-
dataBind(rating: ratingValue, title: titleContent, recommend: recommend, content: content, confirmTitle: confirmTitle)
108107
layout()
108+
dataBind(rating: ratingValue, title: titleContent, recommend: recommend, content: content, confirmTitle: confirmTitle)
109109
register()
110110
self.reviewphotoCollectionView.delegate = self
111111
self.reviewphotoCollectionView.dataSource = self
@@ -481,7 +481,26 @@ extension WriteReviewViewController {
481481
self.writereviewtitleLabel.setupLabel(text: title, color: .black, font: UIFont.notoSansKRMediumFont(fontSize: 20))
482482
self.writereviewtitleLabel.letterSpacing = -0.7
483483
self.ratingContentLabel.text = "\(rating)점"
484-
self.recommend = recommend ?? []
484+
if let recommend = recommend {
485+
if recommend == [0] {
486+
self.tasteButton.isSelected = true
487+
tasteButton.backgroundColor = .maincolor1
488+
tasteButton.setTitleColor(.white, for: .normal)
489+
}
490+
if recommend == [1] {
491+
self.feelButton.isSelected = true
492+
feelButton.backgroundColor = .maincolor1
493+
feelButton.setTitleColor(.white, for: .normal)
494+
}
495+
if recommend == [0,1] {
496+
self.tasteButton.isSelected = true
497+
self.feelButton.isSelected = true
498+
tasteButton.backgroundColor = .maincolor1
499+
tasteButton.setTitleColor(.white, for: .normal)
500+
feelButton.backgroundColor = .maincolor1
501+
feelButton.setTitleColor(.white, for: .normal)
502+
}
503+
}
485504
self.reviewTextView.text = content
486505
if content == "리뷰λ₯Ό μž…λ ₯ν•˜μ„Έμš”." {
487506
self.reviewTextView.textColor = .gray3
@@ -491,16 +510,6 @@ extension WriteReviewViewController {
491510
}
492511
self.writereviewButton.setupButton(title: confirmTitle, color: .white, font: .notoSansKRMediumFont(fontSize: 16), backgroundColor: .maincolor1, state: .normal, radius: 24.5)
493512
self.ratingView.rating = self.ratingValue
494-
if self.recommend == [0] {
495-
self.tasteButton.isSelected = true
496-
}
497-
if self.recommend == [1] {
498-
self.feelButton.isSelected = true
499-
}
500-
if self.recommend == [0,1] {
501-
self.tasteButton.isSelected = true
502-
self.feelButton.isSelected = true
503-
}
504513
}
505514
@objc func tasteButtonClicked() {
506515
tasteButton.isSelected.toggle()

β€ŽCA-PIN_IOS/CA-PIN_IOS/Supports/Assets.xcassets/coffee.imageset/Contents.jsonβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"images" : [
33
{
44
"filename" : "coffee.png",
5-
"scale" : "1x",
6-
"idiom" : "universal"
5+
"idiom" : "universal",
6+
"scale" : "1x"
77
},
88
{
9+
"idiom" : "universal",
910
"filename" : "[email protected]",
10-
"scale" : "2x",
11-
"idiom" : "universal"
11+
"scale" : "2x"
1212
},
1313
{
1414
"scale" : "3x",
-13.5 KB
Loading
-41.9 KB
Loading
-81 KB
Loading

β€ŽCA-PIN_IOS/Podfile.lockβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ SPEC CHECKSUMS:
1313

1414
PODFILE CHECKSUM: 85892d76eba475ec29cbba01bd6921fbed733ca7
1515

16-
COCOAPODS: 1.11.2
16+
COCOAPODS: 1.10.1

0 commit comments

Comments
Β (0)