From 52f15d0aa2e08dfb43016e5ca500eae3d95e4c12 Mon Sep 17 00:00:00 2001 From: doyeonjeong Date: Sun, 26 Mar 2023 14:14:58 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[Fix]:=20Edit=20ViewController=20Na?= =?UTF-8?q?me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AlbumListViewController로 변경 --- doyeon/Album/Album.xcodeproj/project.pbxproj | 8 +- .../xcshareddata/xcschemes/Album.xcscheme | 78 +++++++++++++++++++ ...er.swift => AlbumListViewController.swift} | 12 +-- 3 files changed, 88 insertions(+), 10 deletions(-) create mode 100644 doyeon/Album/Album.xcodeproj/xcshareddata/xcschemes/Album.xcscheme rename doyeon/Album/Album/Sources/{ViewController.swift => AlbumListViewController.swift} (88%) diff --git a/doyeon/Album/Album.xcodeproj/project.pbxproj b/doyeon/Album/Album.xcodeproj/project.pbxproj index 5aa00ed..d52cd7f 100644 --- a/doyeon/Album/Album.xcodeproj/project.pbxproj +++ b/doyeon/Album/Album.xcodeproj/project.pbxproj @@ -13,7 +13,7 @@ 8F5BD53829CA9684007230BB /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = 8F5BD53729CA9684007230BB /* SnapKit */; }; 8FD374AE29BD9C46002A985A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FD374AD29BD9C46002A985A /* AppDelegate.swift */; }; 8FD374B029BD9C46002A985A /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FD374AF29BD9C46002A985A /* SceneDelegate.swift */; }; - 8FD374B229BD9C46002A985A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FD374B129BD9C46002A985A /* ViewController.swift */; }; + 8FD374B229BD9C46002A985A /* AlbumListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FD374B129BD9C46002A985A /* AlbumListViewController.swift */; }; 8FD374B729BD9C48002A985A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8FD374B629BD9C48002A985A /* Assets.xcassets */; }; 8FD374BA29BD9C48002A985A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8FD374B829BD9C48002A985A /* LaunchScreen.storyboard */; }; /* End PBXBuildFile section */ @@ -25,7 +25,7 @@ 8FD374AA29BD9C46002A985A /* Album.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Album.app; sourceTree = BUILT_PRODUCTS_DIR; }; 8FD374AD29BD9C46002A985A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 8FD374AF29BD9C46002A985A /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; - 8FD374B129BD9C46002A985A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 8FD374B129BD9C46002A985A /* AlbumListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlbumListViewController.swift; sourceTree = ""; }; 8FD374B629BD9C48002A985A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 8FD374B929BD9C48002A985A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 8FD374BB29BD9C48002A985A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; @@ -91,7 +91,7 @@ 8FD374C329BD9F7E002A985A /* Sources */ = { isa = PBXGroup; children = ( - 8FD374B129BD9C46002A985A /* ViewController.swift */, + 8FD374B129BD9C46002A985A /* AlbumListViewController.swift */, 8F316DE229CBFB5B00BA7C36 /* AlbumListCell.swift */, 8F316E0829CC30C300BA7C36 /* Album.swift */, 8F316E0A29CC327100BA7C36 /* AlbumViewModel.swift */, @@ -176,7 +176,7 @@ buildActionMask = 2147483647; files = ( 8F316E0B29CC327100BA7C36 /* AlbumViewModel.swift in Sources */, - 8FD374B229BD9C46002A985A /* ViewController.swift in Sources */, + 8FD374B229BD9C46002A985A /* AlbumListViewController.swift in Sources */, 8FD374AE29BD9C46002A985A /* AppDelegate.swift in Sources */, 8FD374B029BD9C46002A985A /* SceneDelegate.swift in Sources */, 8F316DE329CBFB5B00BA7C36 /* AlbumListCell.swift in Sources */, diff --git a/doyeon/Album/Album.xcodeproj/xcshareddata/xcschemes/Album.xcscheme b/doyeon/Album/Album.xcodeproj/xcshareddata/xcschemes/Album.xcscheme new file mode 100644 index 0000000..98cbbb4 --- /dev/null +++ b/doyeon/Album/Album.xcodeproj/xcshareddata/xcschemes/Album.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doyeon/Album/Album/Sources/ViewController.swift b/doyeon/Album/Album/Sources/AlbumListViewController.swift similarity index 88% rename from doyeon/Album/Album/Sources/ViewController.swift rename to doyeon/Album/Album/Sources/AlbumListViewController.swift index 0d3367f..bad7761 100644 --- a/doyeon/Album/Album/Sources/ViewController.swift +++ b/doyeon/Album/Album/Sources/AlbumListViewController.swift @@ -1,5 +1,5 @@ // -// ViewController.swift +// AlbumListViewController.swift // Album // // Created by Doyeon on 2023/03/12. @@ -8,7 +8,7 @@ import UIKit import SnapKit -final class ViewController: UIViewController { +final class AlbumListViewController: UIViewController { // MARK: - Properties let viewModel = AlbumViewModel() @@ -37,7 +37,7 @@ final class ViewController: UIViewController { } // MARK: - Methods -extension ViewController { +extension AlbumListViewController { private func setupUI() { setDelegates() setSubviews() @@ -68,12 +68,12 @@ extension ViewController { } // MARK: - UICollectionViewDelegate -extension ViewController: UICollectionViewDelegate { +extension AlbumListViewController: UICollectionViewDelegate { } // MARK: - UICollectionViewDataSource -extension ViewController: UICollectionViewDataSource { +extension AlbumListViewController: UICollectionViewDataSource { /// 지정된 섹션에 표시할 항목의 개수 func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return albums.count @@ -89,7 +89,7 @@ extension ViewController: UICollectionViewDataSource { } } -extension ViewController: AlbumViewModelDelegate { +extension AlbumListViewController: AlbumViewModelDelegate { func fetchAlbumInfo(_ albums: [Album]) { self.albums = albums }