diff --git a/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard b/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard
index f651e71..c5d657c 100644
--- a/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard
+++ b/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard
@@ -339,6 +339,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift
index 2f939bd..638c0cf 100644
--- a/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift
+++ b/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift
@@ -30,4 +30,8 @@ class HomeTableViewCell: UITableViewCell {
// Configure the view for the selected state
}
+ @objc func tapView(gestureRecognizer: UIGestureRecognizer) {
+
+ }
+
}
diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift
new file mode 100644
index 0000000..9c40eef
--- /dev/null
+++ b/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift
@@ -0,0 +1,29 @@
+//
+// HomeTapVC.swift
+// 29th-assignmnet-YouTube
+//
+// Created by 박예빈 on 2021/12/10.
+//
+
+import UIKit
+
+class HomeTapVC: UIViewController {
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ // Do any additional setup after loading the view.
+ }
+
+
+ /*
+ // MARK: - Navigation
+
+ // In a storyboard-based application, you will often want to do a little preparation before navigation
+ override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
+ // Get the new view controller using segue.destination.
+ // Pass the selected object to the new view controller.
+ }
+ */
+
+}
diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift
index f782e9a..60f75cc 100644
--- a/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift
+++ b/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift
@@ -60,7 +60,6 @@ class HomeVC: UIViewController, UIGestureRecognizerDelegate {
extension HomeVC: UITableViewDelegate {
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 306
-
}
}
@@ -73,19 +72,14 @@ extension HomeVC: UITableViewDataSource {
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard let cell = tableView.dequeueReusableCell(withIdentifier: HomeTableViewCell.identifier) as? HomeTableViewCell else {return UITableViewCell()}
- let tapRecorgnizer = UITapGestureRecognizer(target: self, action: #selector(tapView(gestureRecognizer:)))
-
+ let tapRecorgnizer = UITapGestureRecognizer(target: self, action: #selector(cell.tapView(gestureRecognizer:)))
cell.mainImageView.addGestureRecognizer(tapRecorgnizer)
-
tapRecorgnizer.delegate = self
-
return cell
}
- @objc func tapView(gestureRecognizer: UIGestureRecognizer) {
- print("~$$")
- }
+
}
// MARK: CollectionView
@@ -96,7 +90,6 @@ extension HomeVC: UICollectionViewDataSource {
} else {
return 6
}
-
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
diff --git a/29th-assignmnet-YouTube.xcodeproj/project.pbxproj b/29th-assignmnet-YouTube.xcodeproj/project.pbxproj
index eefcbe0..f053887 100644
--- a/29th-assignmnet-YouTube.xcodeproj/project.pbxproj
+++ b/29th-assignmnet-YouTube.xcodeproj/project.pbxproj
@@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
+ 1501BB9D276382430084AAE4 /* HomeTapVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1501BB9C276382430084AAE4 /* HomeTapVC.swift */; };
15B2AE83272AF8ED00FFC5B2 /* UINavigationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15B2AE82272AF8ED00FFC5B2 /* UINavigationController.swift */; };
15B2AE85272AFA2900FFC5B2 /* UITextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15B2AE84272AFA2900FFC5B2 /* UITextField.swift */; };
15B2AE87272AFDD800FFC5B2 /* UIColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15B2AE86272AFDD800FFC5B2 /* UIColor.swift */; };
@@ -39,6 +40,7 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
+ 1501BB9C276382430084AAE4 /* HomeTapVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeTapVC.swift; sourceTree = ""; };
15B2AE82272AF8ED00FFC5B2 /* UINavigationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UINavigationController.swift; sourceTree = ""; };
15B2AE84272AFA2900FFC5B2 /* UITextField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITextField.swift; sourceTree = ""; };
15B2AE86272AFDD800FFC5B2 /* UIColor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIColor.swift; sourceTree = ""; };
@@ -248,6 +250,7 @@
15B2AE92272B24D700FFC5B2 /* HomeTableViewCell.swift */,
15B2AE93272B24D700FFC5B2 /* HomeTableViewCell.xib */,
15FF7ED8272B35E7004BE9D1 /* FilterCollectionViewCell.swift */,
+ 1501BB9C276382430084AAE4 /* HomeTapVC.swift */,
);
path = HomeVC;
sourceTree = "";
@@ -412,6 +415,7 @@
15B2AE89272B139300FFC5B2 /* StoryCollectionViewCell.swift in Sources */,
15B2AE8B272B17BB00FFC5B2 /* StoryDataModel.swift in Sources */,
15F3BA35271DCD7D00D51D4E /* HomeVC.swift in Sources */,
+ 1501BB9D276382430084AAE4 /* HomeTapVC.swift in Sources */,
15B2AE83272AF8ED00FFC5B2 /* UINavigationController.swift in Sources */,
15F3BA37271DCDD500D51D4E /* ShortsVC.swift in Sources */,
15B2AE94272B24D700FFC5B2 /* HomeTableViewCell.swift in Sources */,