diff --git a/iOS/Airbnb/Airbnb.xcodeproj/project.pbxproj b/iOS/Airbnb/Airbnb.xcodeproj/project.pbxproj index 7a9f81ce0..0bb364bf2 100644 --- a/iOS/Airbnb/Airbnb.xcodeproj/project.pbxproj +++ b/iOS/Airbnb/Airbnb.xcodeproj/project.pbxproj @@ -35,8 +35,8 @@ AE87A78A2668DFB1003E9541 /* AccommodationCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AE87A7882668DFB1003E9541 /* AccommodationCell.xib */; }; AE87A78C266906AE003E9541 /* RoomsUseCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE87A78B266906AE003E9541 /* RoomsUseCase.swift */; }; AE87A78E26690954003E9541 /* RoomDTO.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE87A78D26690954003E9541 /* RoomDTO.swift */; }; - AE87A79726693CD3003E9541 /* DetailRoomViewControllerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE87A79526693CD3003E9541 /* DetailRoomViewControllerViewController.swift */; }; - AE87A79826693CD3003E9541 /* DetailRoomViewControllerViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = AE87A79626693CD3003E9541 /* DetailRoomViewControllerViewController.xib */; }; + AE87A79726693CD3003E9541 /* DetailRoomViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE87A79526693CD3003E9541 /* DetailRoomViewController.swift */; }; + AE87A79826693CD3003E9541 /* DetailRoomViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = AE87A79626693CD3003E9541 /* DetailRoomViewController.xib */; }; AE8CD3B42653538700BCB8FC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE8CD3B32653538700BCB8FC /* AppDelegate.swift */; }; AE8CD3B62653538700BCB8FC /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE8CD3B52653538700BCB8FC /* SceneDelegate.swift */; }; AE8CD3B82653538700BCB8FC /* MainPageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE8CD3B72653538700BCB8FC /* MainPageViewController.swift */; }; @@ -100,8 +100,8 @@ AE87A7882668DFB1003E9541 /* AccommodationCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AccommodationCell.xib; sourceTree = ""; }; AE87A78B266906AE003E9541 /* RoomsUseCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomsUseCase.swift; sourceTree = ""; }; AE87A78D26690954003E9541 /* RoomDTO.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomDTO.swift; sourceTree = ""; }; - AE87A79526693CD3003E9541 /* DetailRoomViewControllerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailRoomViewControllerViewController.swift; sourceTree = ""; }; - AE87A79626693CD3003E9541 /* DetailRoomViewControllerViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DetailRoomViewControllerViewController.xib; sourceTree = ""; }; + AE87A79526693CD3003E9541 /* DetailRoomViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailRoomViewController.swift; sourceTree = ""; }; + AE87A79626693CD3003E9541 /* DetailRoomViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DetailRoomViewController.xib; sourceTree = ""; }; AE8CD3B02653538700BCB8FC /* Airbnb.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Airbnb.app; sourceTree = BUILT_PRODUCTS_DIR; }; AE8CD3B32653538700BCB8FC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; AE8CD3B52653538700BCB8FC /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; @@ -233,8 +233,8 @@ isa = PBXGroup; children = ( AE87A7832668D19D003E9541 /* RoomsViewController.swift */, - AE87A79526693CD3003E9541 /* DetailRoomViewControllerViewController.swift */, - AE87A79626693CD3003E9541 /* DetailRoomViewControllerViewController.xib */, + AE87A79526693CD3003E9541 /* DetailRoomViewController.swift */, + AE87A79626693CD3003E9541 /* DetailRoomViewController.xib */, ); path = ViewController; sourceTree = ""; @@ -472,7 +472,7 @@ files = ( AE0B5DF4265642B2000B35E7 /* CategoryCell.xib in Resources */, AE8CD3C02653538800BCB8FC /* LaunchScreen.storyboard in Resources */, - AE87A79826693CD3003E9541 /* DetailRoomViewControllerViewController.xib in Resources */, + AE87A79826693CD3003E9541 /* DetailRoomViewController.xib in Resources */, AE87A77D26687F71003E9541 /* PersonCell.xib in Resources */, AE8CD3BD2653538800BCB8FC /* Assets.xcassets in Resources */, AE87A78A2668DFB1003E9541 /* AccommodationCell.xib in Resources */, @@ -530,7 +530,7 @@ AE8CD3B42653538700BCB8FC /* AppDelegate.swift in Sources */, AE0B5DE926562D4A000B35E7 /* TitleSupplementaryView.swift in Sources */, AE0B5DE62656073E000B35E7 /* CityCell.swift in Sources */, - AE87A79726693CD3003E9541 /* DetailRoomViewControllerViewController.swift in Sources */, + AE87A79726693CD3003E9541 /* DetailRoomViewController.swift in Sources */, AE87A7862668DF22003E9541 /* RoomsSupplementaryView.swift in Sources */, AE8CD3B62653538700BCB8FC /* SceneDelegate.swift in Sources */, AE87A7812668992C003E9541 /* PeopleViewModel.swift in Sources */, diff --git a/iOS/Airbnb/Airbnb.xcodeproj/project.xcworkspace/xcuserdata/gimjigyeong.xcuserdatad/UserInterfaceState.xcuserstate b/iOS/Airbnb/Airbnb.xcodeproj/project.xcworkspace/xcuserdata/gimjigyeong.xcuserdatad/UserInterfaceState.xcuserstate index 3888a32fe..5201d1af9 100644 Binary files a/iOS/Airbnb/Airbnb.xcodeproj/project.xcworkspace/xcuserdata/gimjigyeong.xcuserdatad/UserInterfaceState.xcuserstate and b/iOS/Airbnb/Airbnb.xcodeproj/project.xcworkspace/xcuserdata/gimjigyeong.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewController.swift b/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewController.swift new file mode 100644 index 000000000..d92f55ff2 --- /dev/null +++ b/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewController.swift @@ -0,0 +1,26 @@ +// +// DetailRoomViewController.swift +// Airbnb +// +// Created by Lia on 2021/06/04. +// + +import UIKit + +class DetailRoomViewController: UIViewController { + + static let reuseIdentifier = "DetailRoomViewController" + static let nib = UINib(nibName: DetailRoomViewController.reuseIdentifier, bundle: nil) + + override func viewDidLoad() { + super.viewDidLoad() + configureNavi() + } + + private func configureNavi() { + self.navigationController?.isNavigationBarHidden = true + self.tabBarController?.tabBar.isHidden = true + } + + +} diff --git a/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewControllerViewController.xib b/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewController.xib similarity index 99% rename from iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewControllerViewController.xib rename to iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewController.xib index e31e2a63e..af3bc5ed6 100644 --- a/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewControllerViewController.xib +++ b/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewController.xib @@ -8,7 +8,7 @@ - + diff --git a/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewControllerViewController.swift b/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewControllerViewController.swift deleted file mode 100644 index 7c3fda151..000000000 --- a/iOS/Airbnb/Airbnb/ResultPage/ViewController/DetailRoomViewControllerViewController.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// DetailRoomViewControllerViewController.swift -// Airbnb -// -// Created by Lia on 2021/06/04. -// - -import UIKit - -class DetailRoomViewControllerViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - - } - - -} diff --git a/iOS/Airbnb/Airbnb/ResultPage/ViewController/RoomsViewController.swift b/iOS/Airbnb/Airbnb/ResultPage/ViewController/RoomsViewController.swift index 937d8bd63..589023f08 100644 --- a/iOS/Airbnb/Airbnb/ResultPage/ViewController/RoomsViewController.swift +++ b/iOS/Airbnb/Airbnb/ResultPage/ViewController/RoomsViewController.swift @@ -140,7 +140,7 @@ extension RoomsViewController { extension RoomsViewController: UICollectionViewDelegate { func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { - let detailViewController = DetailDestinationViewController() + let detailViewController = DetailRoomViewController(nibName: DetailRoomViewController.reuseIdentifier, bundle: nil) self.navigationController?.pushViewController(detailViewController, animated: true) }