From 37e3f70b3d6d2ea1f8b12d1a6f90f419de6ab7af Mon Sep 17 00:00:00 2001 From: kms0233 Date: Fri, 17 Jan 2025 01:14:43 +0900 Subject: [PATCH] =?UTF-8?q?[Fix/#29]=20=EC=95=84=EC=9D=B4=EC=BD=98=20?= =?UTF-8?q?=EC=83=89=EC=83=81=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Gongbaek_iOS.xcodeproj/project.pbxproj | 2 -- .../Global/Component/Box/LocationBox.swift | 11 +---------- .../Global/Component/Box/PersonBox.swift | 13 ++----------- .../Global/Component/Box/TimeBox.swift | 15 +++------------ 4 files changed, 6 insertions(+), 35 deletions(-) diff --git a/Gongbaek_iOS/Gongbaek_iOS.xcodeproj/project.pbxproj b/Gongbaek_iOS/Gongbaek_iOS.xcodeproj/project.pbxproj index 9b5baee2..7176956c 100644 --- a/Gongbaek_iOS/Gongbaek_iOS.xcodeproj/project.pbxproj +++ b/Gongbaek_iOS/Gongbaek_iOS.xcodeproj/project.pbxproj @@ -20,8 +20,6 @@ isa = PBXFileSystemSynchronizedBuildFileExceptionSet; membershipExceptions = ( Global/Component/BottomSheet/.gitkeep, - Global/Component/Box/.gitkeep, - Global/Component/Modal/.gitkeep, Global/Component/Others/.gitkeep, Network/Service/DTO/Filling/.gitkeep, Presentation/Home/View/.gitkeep, diff --git a/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/LocationBox.swift b/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/LocationBox.swift index e5d8a804..73f56df7 100644 --- a/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/LocationBox.swift +++ b/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/LocationBox.swift @@ -17,7 +17,7 @@ struct LocationBox: View { Image(.icPlace16) .resizable() .frame(width: 16, height: 16) - .foregroundColor(iconColor) + .foregroundColor(.gray05) Text(text) .font(font) @@ -25,15 +25,6 @@ struct LocationBox: View { } } - private var iconColor: Color { - switch state { - case .gray: - return .gray05 - case .white: - return .grayWhite - } - } - private var textColor: Color { switch state { case .gray: diff --git a/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/PersonBox.swift b/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/PersonBox.swift index 13e5ceb2..13b9fba3 100644 --- a/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/PersonBox.swift +++ b/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/PersonBox.swift @@ -18,23 +18,14 @@ struct PersonBox: View { Image(.icPeople18) .resizable() .frame(width: 16, height: 16) - .foregroundColor(iconColor) - + .foregroundColor(.gray05) + Text(text) .font(font) .foregroundColor(textColor) } } - private var iconColor: Color { - switch state { - case .gray: - return .gray05 - case .white: - return .grayWhite - } - } - private var textColor: Color { switch state { case .gray: diff --git a/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/TimeBox.swift b/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/TimeBox.swift index f75ec8ff..a5b3e395 100644 --- a/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/TimeBox.swift +++ b/Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/TimeBox.swift @@ -22,23 +22,14 @@ struct TimeBox: View { Image(.icTime16) .resizable() .frame(width: 16, height: 16) - .foregroundColor(iconColor) - + .foregroundColor(.gray05) + Text(text) .font(font) .foregroundColor(textColor) } } - - private var iconColor: Color { - switch state { - case .gray: - return .gray05 - case .white: - return .grayWhite - } - } - + private var textColor: Color { switch state { case .gray: