From 905fcbbc7078174c4637ddbf08a7056092471fec Mon Sep 17 00:00:00 2001 From: jjinwoong Date: Tue, 15 Nov 2022 11:45:42 +0900 Subject: [PATCH] =?UTF-8?q?[style]=20=EB=AA=87=EB=AA=87=20cell=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DailyQuest.xcodeproj/project.pbxproj | 44 ++++++++++++++++--- .../BrowseCell.swift} | 6 +-- .../Common/{ => Cells}/CalendarCell.swift | 0 .../Common/{ => Cells}/UserInfoCell.swift | 0 4 files changed, 41 insertions(+), 9 deletions(-) rename DailyQuest/DailyQuest/Presentation/Common/{QuestCell.swift => Cells/BrowseCell.swift} (97%) rename DailyQuest/DailyQuest/Presentation/Common/{ => Cells}/CalendarCell.swift (100%) rename DailyQuest/DailyQuest/Presentation/Common/{ => Cells}/UserInfoCell.swift (100%) diff --git a/DailyQuest/DailyQuest.xcodeproj/project.pbxproj b/DailyQuest/DailyQuest.xcodeproj/project.pbxproj index b86ead7..5634790 100644 --- a/DailyQuest/DailyQuest.xcodeproj/project.pbxproj +++ b/DailyQuest/DailyQuest.xcodeproj/project.pbxproj @@ -29,7 +29,7 @@ 34ACC366291DEF6100741371 /* FirebaseStorage in Frameworks */ = {isa = PBXBuildFile; productRef = 34ACC365291DEF6100741371 /* FirebaseStorage */; }; 34ACC36C291DF0DD00741371 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 34ACC36B291DF0DD00741371 /* GoogleService-Info.plist */; }; 9B1CFB392922AFC700CCE97A /* QuestView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B1CFB362922763E00CCE97A /* QuestView.swift */; }; - 9B1CFB3B2922BBDA00CCE97A /* QuestCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B1CFB342922460100CCE97A /* QuestCell.swift */; }; + 9B1CFB3B2922BBDA00CCE97A /* BrowseCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B1CFB342922460100CCE97A /* BrowseCell.swift */; }; B50078D629222F3F0070AFC4 /* CircleCheckView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B50078D529222F3F0070AFC4 /* CircleCheckView.swift */; }; B58DFC0A29227DA800C68A4B /* CalendarCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = B58DFC0929227DA800C68A4B /* CalendarCell.swift */; }; /* End PBXBuildFile section */ @@ -69,7 +69,7 @@ 34ACC34D291DE9C100741371 /* DailyQuestUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyQuestUITests.swift; sourceTree = ""; }; 34ACC34F291DE9C100741371 /* DailyQuestUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyQuestUITestsLaunchTests.swift; sourceTree = ""; }; 34ACC36B291DF0DD00741371 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; - 9B1CFB342922460100CCE97A /* QuestCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuestCell.swift; sourceTree = ""; }; + 9B1CFB342922460100CCE97A /* BrowseCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowseCell.swift; sourceTree = ""; }; 9B1CFB362922763E00CCE97A /* QuestView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuestView.swift; sourceTree = ""; }; B50078D529222F3F0070AFC4 /* CircleCheckView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CircleCheckView.swift; sourceTree = ""; }; B58DFC0929227DA800C68A4B /* CalendarCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarCell.swift; sourceTree = ""; }; @@ -120,11 +120,9 @@ 3449AD5E292219D600B87619 /* Common */ = { isa = PBXGroup; children = ( - 9B1CFB342922460100CCE97A /* QuestCell.swift */, + 3499551C292332DE007AB99E /* Cells */, 9B1CFB362922763E00CCE97A /* QuestView.swift */, B50078D529222F3F0070AFC4 /* CircleCheckView.swift */, - B58DFC0929227DA800C68A4B /* CalendarCell.swift */, - 3449AD5F29222B3900B87619 /* UserInfoCell.swift */, ); path = Common; sourceTree = ""; @@ -167,6 +165,37 @@ path = Repositories; sourceTree = ""; }; + 34995519292332A9007AB99E /* Home */ = { + isa = PBXGroup; + children = ( + ); + path = Home; + sourceTree = ""; + }; + 3499551A292332B2007AB99E /* Browse */ = { + isa = PBXGroup; + children = ( + ); + path = Browse; + sourceTree = ""; + }; + 3499551B292332B8007AB99E /* Settings */ = { + isa = PBXGroup; + children = ( + ); + path = Settings; + sourceTree = ""; + }; + 3499551C292332DE007AB99E /* Cells */ = { + isa = PBXGroup; + children = ( + 9B1CFB342922460100CCE97A /* BrowseCell.swift */, + B58DFC0929227DA800C68A4B /* CalendarCell.swift */, + 3449AD5F29222B3900B87619 /* UserInfoCell.swift */, + ); + path = Cells; + sourceTree = ""; + }; 34ACC320291DE9C000741371 = { isa = PBXGroup; children = ( @@ -233,6 +262,9 @@ 34ACC368291DF02500741371 /* Presentation */ = { isa = PBXGroup; children = ( + 3499551B292332B8007AB99E /* Settings */, + 3499551A292332B2007AB99E /* Browse */, + 34995519292332A9007AB99E /* Home */, 3449AD5E292219D600B87619 /* Common */, ); path = Presentation; @@ -402,7 +434,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 9B1CFB3B2922BBDA00CCE97A /* QuestCell.swift in Sources */, + 9B1CFB3B2922BBDA00CCE97A /* BrowseCell.swift in Sources */, 3449AD5D2922197000B87619 /* User.swift in Sources */, B50078D629222F3F0070AFC4 /* CircleCheckView.swift in Sources */, B58DFC0A29227DA800C68A4B /* CalendarCell.swift in Sources */, diff --git a/DailyQuest/DailyQuest/Presentation/Common/QuestCell.swift b/DailyQuest/DailyQuest/Presentation/Common/Cells/BrowseCell.swift similarity index 97% rename from DailyQuest/DailyQuest/Presentation/Common/QuestCell.swift rename to DailyQuest/DailyQuest/Presentation/Common/Cells/BrowseCell.swift index f154384..aaa385c 100644 --- a/DailyQuest/DailyQuest/Presentation/Common/QuestCell.swift +++ b/DailyQuest/DailyQuest/Presentation/Common/Cells/BrowseCell.swift @@ -8,7 +8,7 @@ import UIKit import SnapKit -class QuestCell: UITableViewCell { +class BrowseCell: UITableViewCell { static let reuseIdentifier = "QuestCell" @@ -133,10 +133,10 @@ class QuestCell: UITableViewCell { #if canImport(SwiftUI) && DEBUG import SwiftUI -struct QuestCellPreview: PreviewProvider{ +struct BrowseCellPreview: PreviewProvider{ static var previews: some View { UIViewPreview { - let cell = QuestCell(frame: .zero) + let cell = BrowseCell(frame: .zero) cell.setup(user: User(uuid: UUID(), nickName: "맥스", profile: Data(), backgroundImage: Data(), description: ""), quest: [Quest(title: "물 마시기", startDay: Date(), endDay: Date(), repeat: 0, currentCount: 1, totalCount: 5), Quest(title: "물 마시기", startDay: Date(), endDay: Date(), repeat: 0, currentCount: 1, totalCount: 5), Quest(title: "물 마시기", startDay: Date(), endDay: Date(), repeat: 0, currentCount: 1, totalCount: 5)]) return cell } diff --git a/DailyQuest/DailyQuest/Presentation/Common/CalendarCell.swift b/DailyQuest/DailyQuest/Presentation/Common/Cells/CalendarCell.swift similarity index 100% rename from DailyQuest/DailyQuest/Presentation/Common/CalendarCell.swift rename to DailyQuest/DailyQuest/Presentation/Common/Cells/CalendarCell.swift diff --git a/DailyQuest/DailyQuest/Presentation/Common/UserInfoCell.swift b/DailyQuest/DailyQuest/Presentation/Common/Cells/UserInfoCell.swift similarity index 100% rename from DailyQuest/DailyQuest/Presentation/Common/UserInfoCell.swift rename to DailyQuest/DailyQuest/Presentation/Common/Cells/UserInfoCell.swift