Skip to content

Commit eb9a897

Browse files
committed
Merge branch 'develop' into feat/#234
2 parents 18778db + e40f0dd commit eb9a897

File tree

11 files changed

+84
-37
lines changed

11 files changed

+84
-37
lines changed

EATSSU/App/Sources/Presentation/Home/ViewController/HomeTimeTabmanController.swift

+9-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,15 @@ extension HomeTimeTabmanController: PageboyViewControllerDataSource, TMBarDataSo
131131
}
132132

133133
func setLayoutTabBar(ctBar: TMBar.ButtonBar) {
134-
ctBar.backgroundColor = .white
135-
ctBar.backgroundView.style = .blur(style: .regular)
134+
// 투명도 줄이기 활성화 체크
135+
if UIAccessibility.isReduceTransparencyEnabled {
136+
ctBar.backgroundView.style = .flat(color: .white)
137+
ctBar.backgroundColor = .white.withAlphaComponent(1.0)
138+
} else {
139+
ctBar.backgroundView.style = .blur(style: .regular)
140+
ctBar.backgroundColor = .clear
141+
}
142+
136143
ctBar.layout.contentInset = UIEdgeInsets(top: 0.0, left: 0.0, bottom: 0.0, right: 0.0)
137144
ctBar.buttons.customize { button in
138145
button.tintColor = .gray700 // 선택 안되어 있을 때

EATSSU/App/Sources/Presentation/Home/ViewController/HomeViewController.swift

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import UIKit
1010
import EATSSUDesign
1111

1212
import FirebaseAnalytics
13-
import GoogleMobileAds
1413
import Moya
1514
import SnapKit
1615

EATSSU/App/Sources/Presentation/MyPage/ViewController/MyReviewViewController.swift

+7-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ final class MyReviewViewController: BaseViewController {
2626
// MARK: - UI Components
2727

2828
let myReviewView = MyReviewView()
29+
30+
init(nickname: String) {
31+
self.nickname = nickname
32+
super.init(nibName: nil, bundle: nil)
33+
}
2934

3035
private lazy var noMyReviewImageView: UIImageView = {
3136
let imageView = UIImageView()
@@ -76,8 +81,8 @@ final class MyReviewViewController: BaseViewController {
7681
myReviewView.myReviewTableView.dataSource = self
7782
}
7883

79-
func dataBind(nikcname: String) {
80-
nickname = nikcname
84+
func dataBind(nickname: String) {
85+
self.nickname = nickname
8186
}
8287

8388
private func showFixOrDeleteAlert(reviewID: Int, menuName: String) {

EATSSU/App/Sources/Presentation/Review/View/SeeReview/RateNumberView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ final class RateNumberView: BaseView {
5252
rateNumberStackView.do {
5353
$0.axis = .horizontal
5454
$0.spacing = 3
55-
$0.alignment = .top
55+
$0.alignment = .center
5656
}
5757
}
5858

EATSSU/App/Sources/Presentation/Review/View/SeeReview/ReviewTableCell.swift

+6-5
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ final class ReviewTableCell: UITableViewCell {
6767

6868
private let userProfileImageView: UIImageView = {
6969
let imageView = UIImageView()
70-
imageView.image = UIImage(named: "userProfile.svg")
70+
// imageView.image = UIImage(named: "userProfile.svg")
71+
imageView.image = EATSSUDesignAsset.Images.profile.image
7172
return imageView
7273
}()
7374

@@ -147,7 +148,7 @@ final class ReviewTableCell: UITableViewCell {
147148
let stackView = UIStackView(arrangedSubviews: [userProfileImageView, infoStackView])
148149
stackView.axis = .horizontal
149150
stackView.spacing = 8.adjusted
150-
stackView.alignment = .leading
151+
stackView.alignment = .center
151152
return stackView
152153
}()
153154

@@ -199,7 +200,7 @@ final class ReviewTableCell: UITableViewCell {
199200
}
200201

201202
dateReportStackView.snp.makeConstraints { make in
202-
make.top.equalTo(profileStackView)
203+
make.centerY.equalTo(profileStackView)
203204
make.trailing.equalToSuperview().inset(16)
204205
}
205206

@@ -247,7 +248,7 @@ extension ReviewTableCell {
247248
foodImageView.isHidden = true
248249
}
249250

250-
response.isWriter ? sideButton.setImage(ImageLiteral.greySideButton, for: .normal) : sideButton.setTitle("신고", for: .normal)
251+
response.isWriter ? sideButton.setImage(EATSSUDesignAsset.Images.icMenu.image, for: .normal) : sideButton.setTitle("신고", for: .normal)
251252
sideButton.addTarget(self, action: #selector(touchedSideButtonEvent), for: .touchUpInside)
252253
}
253254

@@ -268,7 +269,7 @@ extension ReviewTableCell {
268269
foodImageView.isHidden = true
269270
}
270271
sideButton.addTarget(self, action: #selector(touchedSideButtonEvent), for: .touchUpInside)
271-
sideButton.setImage(ImageLiteral.greySideButton, for: .normal)
272+
sideButton.setImage(EATSSUDesignAsset.Images.icMenu.image, for: .normal)
272273
sideButton.setTitle("", for: .normal)
273274
reviewId = response.reviewID
274275
}

EATSSU/App/Sources/Presentation/Review/ViewController/SetRateViewController.swift

+35-2
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,37 @@ final class SetRateViewController: BaseViewController {
131131
$0.addGestureRecognizer(tapGesture)
132132
}
133133

134+
private lazy var imageContainer = UIView().then {
135+
$0.addSubview(selectImageButton)
136+
$0.addSubview(imageCountLabel)
137+
}
138+
134139
private lazy var selectImageButton = UIButton().then {
135-
$0.setImage(UIImage(named: "AddImageButton"), for: .normal)
140+
var config = UIButton.Configuration.plain()
141+
config.image = EATSSUDesignAsset.Images.addImageButton.image
142+
config.contentInsets = NSDirectionalEdgeInsets(top: -5, leading: 0, bottom: 5, trailing: 0)
143+
144+
$0.configuration = config
136145
$0.addTarget(self, action: #selector(didSelectedImage), for: .touchUpInside)
146+
147+
$0.layer.borderWidth = 1
148+
$0.layer.borderColor = EATSSUDesignAsset.Color.GrayScale.gray500.color.cgColor
149+
$0.layer.cornerRadius = 8
150+
$0.clipsToBounds = true
151+
152+
$0.contentVerticalAlignment = .center
153+
$0.contentHorizontalAlignment = .center
154+
}
155+
156+
private let imageCountLabel = UILabel().then {
157+
$0.text = "사진 0/1"
158+
$0.font = .caption3
159+
$0.textColor = EATSSUDesignAsset.Color.GrayScale.gray500.color
160+
$0.textAlignment = .center
137161
}
138162

139163
private let deleteMethodLabel = UILabel().then {
140-
$0.text = "이미지 클릭 시, 삭제됩니다"
164+
$0.text = "사진 클릭 시, 삭제됩니다"
141165
$0.font = .caption3
142166
$0.textColor = EATSSUDesignAsset.Color.GrayScale.gray500.color
143167
}
@@ -183,6 +207,7 @@ final class SetRateViewController: BaseViewController {
183207
userReviewTextView,
184208
maximumWordLabel,
185209
selectImageButton,
210+
imageCountLabel,
186211
userReviewImageView,
187212
deleteMethodLabel,
188213
nextButton)
@@ -267,6 +292,12 @@ final class SetRateViewController: BaseViewController {
267292
$0.height.equalTo(60)
268293
}
269294

295+
imageCountLabel.snp.makeConstraints {
296+
$0.top.equalTo(selectImageButton.snp.bottom).offset(-19)
297+
$0.centerX.equalTo(selectImageButton)
298+
$0.width.equalTo(selectImageButton)
299+
}
300+
270301
userReviewImageView.snp.makeConstraints {
271302
$0.top.equalTo(maximumWordLabel.snp.bottom).offset(15)
272303
$0.leading.equalTo(selectImageButton.snp.trailing).offset(13)
@@ -386,6 +417,7 @@ final class SetRateViewController: BaseViewController {
386417
func didTappedimageView() {
387418
userReviewImageView.image = nil // 이미지 삭제
388419
userPickedImage = nil
420+
imageCountLabel.text = "사진 0/1"
389421
}
390422

391423
private func prepareForNextReview() {
@@ -511,6 +543,7 @@ extension SetRateViewController: UIImagePickerControllerDelegate {
511543
if let image = info[UIImagePickerController.InfoKey.originalImage] as? UIImage {
512544
userReviewImageView.image = image
513545
userPickedImage = image
546+
imageCountLabel.text = "사진 1/1"
514547
}
515548
picker.dismiss(animated: true, completion: nil)
516549
}

EATSSU/App/Sources/Utility/Application/AppDelegate.swift

-7
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ import AuthenticationServices
99
import UIKit
1010

1111
import Firebase
12-
import GoogleMobileAds
1312
import KakaoSDKCommon
1413

1514
@main
1615
class AppDelegate: UIResponder, UIApplicationDelegate {
1716
// MARK: - UIApplicationDelegate Methods
1817

1918
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
20-
configureGoogleMobileAds()
2119
setupNotificationPermissions()
2220
startNetworkMonitoring()
2321
configureFirebase()
@@ -40,11 +38,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4038

4139
// MARK: - Private Methods
4240

43-
/// Google Mobile Ads SDK를 초기화합니다.
44-
private func configureGoogleMobileAds() {
45-
GADMobileAds.sharedInstance().start(completionHandler: nil)
46-
}
47-
4841
/// 푸시 알림 권한을 요청하고 설정을 처리합니다.
4942
private func setupNotificationPermissions() {
5043
NotificationManager.shared.requestNotificationPermission { granted in

EATSSU/Project.swift

+2-14
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ let appInfoPlist: InfoPlist = .extendingDefault(with: [
44
// API Keys Settings
55
"BASE_URL": "https://$(BASE_URL)",
66
"KAKAO API KEY": "$(KAKAO_API_KEY)",
7-
"NMFClientId": "$(NMAP_CLIENT_ID)",
8-
"GADApplicationIdentifier": "$(GADApplicationIdentifier)",
9-
"NSLocationAlwaysUsageDescription": "사용자의 위치를 받습니다.",
10-
"UILaunchStoryboardName": "LaunchScreen",
117
"CFBundleURLTypes": [
128
[
139
"CFBundleTypeRole": "Editor",
@@ -104,10 +100,6 @@ let project = Project(
104100
.external(name: "KakaoSDKUser"),
105101
.external(name: "KakaoSDKCommon"),
106102
.external(name: "KakaoSDKTalk"),
107-
.external(name: "GoogleMobileAds"),
108-
.external(name: "NMapsMap"),
109-
.external(name: "FloatingPanel"),
110-
.external(name: "AlertKit"),
111103

112104
// EATSSU 내장 라이브러리
113105
.project(target: "EATSSUDesign", path: .relativeToRoot("../EATSSUDesign"), condition: .none),
@@ -145,10 +137,6 @@ let project = Project(
145137
.external(name: "KakaoSDKUser"),
146138
.external(name: "KakaoSDKCommon"),
147139
.external(name: "KakaoSDKTalk"),
148-
.external(name: "GoogleMobileAds"),
149-
.external(name: "NMapsMap"),
150-
.external(name: "FloatingPanel"),
151-
.external(name: "AlertKit"),
152140

153141
// EATSSU 내장 라이브러리
154142
.project(target: "EATSSUDesign", path: .relativeToRoot("../EATSSUDesign"), condition: .none),
@@ -160,7 +148,7 @@ let project = Project(
160148
name: "EATSSUWidget-DEV",
161149
destinations: [.iPhone],
162150
product: .appExtension,
163-
bundleId: "com.jiwoo.EatSSU.WidgetExtension",
151+
bundleId: "com.jiwoo.EatSSU.EatSSUwidget",
164152
deploymentTargets: widgetDeploymentTarget,
165153
infoPlist: widgetInfoPlist,
166154
sources: ["Widget/Sources/**"],
@@ -179,7 +167,7 @@ let project = Project(
179167
name: "EATSSUWidget-PROD",
180168
destinations: [.iPhone],
181169
product: .appExtension,
182-
bundleId: "com.jiwoo.EatSSU.WidgetExtension",
170+
bundleId: "com.jiwoo.EatSSU.EatSSUwidget",
183171
deploymentTargets: widgetDeploymentTarget,
184172
infoPlist: widgetInfoPlist,
185173
sources: ["Widget/Sources/**"],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "AddImageButton.svg",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

Tuist/Package.swift

-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ import PackageDescription
2727
"Firebase": .framework,
2828
"GoogleAppMeasurement": .framework,
2929

30-
// Google Ad Mobs
31-
"GoogleMobileAds": .framework,
32-
3330
// realm-swift
3431
"Realm": .framework,
3532
"RealmSwift": .framework,

0 commit comments

Comments
 (0)