From 7f951533761a1ba620d7a2808e3d8be71b3195cd Mon Sep 17 00:00:00 2001 From: beansBin Date: Fri, 10 Dec 2021 21:15:20 +0900 Subject: [PATCH 1/6] =?UTF-8?q?=E2=9A=A1=EF=B8=8F[IMPROVE]=20HomeVC=20setD?= =?UTF-8?q?ataSoureWithDelegate()=20=EC=83=9D=EC=84=B1=20(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/HomeVC/HomeVC.swift | 28 +++++++++++++------ .../xcdebugger/Breakpoints_v2.xcbkptlist | 6 ++++ 2 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 29th-assignmnet-YouTube.xcworkspace/xcuserdata/beans_bin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift index 52a183c..02721b4 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift @@ -20,14 +20,7 @@ class HomeVC: UIViewController { initContentList() registerXib() - storyCollectionView.dataSource = self - filterCollectionView.dataSource = self - storyCollectionView.delegate = self - filterCollectionView.delegate = self - mainTableView.delegate = self - mainTableView.dataSource = self - - + setDataSourceWithDelegate() } @IBAction func touchUpToGoLogin(_ sender: Any) { @@ -37,6 +30,15 @@ class HomeVC: UIViewController { } + func setDataSourceWithDelegate() { + storyCollectionView.dataSource = self + filterCollectionView.dataSource = self + storyCollectionView.delegate = self + filterCollectionView.delegate = self + mainTableView.delegate = self + mainTableView.dataSource = self + } + func registerXib(){ let xibName = UINib(nibName: HomeTableViewCell.identifier, bundle: nil) mainTableView.register(xibName, forCellReuseIdentifier: HomeTableViewCell.identifier) @@ -71,8 +73,16 @@ 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:))) + + cell.mainImageView.addGestureRecognizer(tapRecorgnizer) + return cell } + + @objc func tapView(gestureRecognizer: UIGestureRecognizer) { + print("~$$") + } } // MARK: CollectionView @@ -107,7 +117,7 @@ extension HomeVC: UICollectionViewDelegateFlowLayout { if collectionView == storyCollectionView { return CGSize(width: 72, height: 104) } else { - print(UIImage(named: "filter-" + String(indexPath.row + 1))?.size.width) +// print(UIImage(named: "filter-" + String(indexPath.row + 1))?.size.width) return CGSize(width:((UIImage(named: "filter-" + String(indexPath.row + 1)))?.size.width)!, height: 32) } diff --git a/29th-assignmnet-YouTube.xcworkspace/xcuserdata/beans_bin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/29th-assignmnet-YouTube.xcworkspace/xcuserdata/beans_bin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..856110c --- /dev/null +++ b/29th-assignmnet-YouTube.xcworkspace/xcuserdata/beans_bin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,6 @@ + + + From 89f34ce1b74b4e4df0aff3d96c3b1547dea85daa Mon Sep 17 00:00:00 2001 From: beansBin Date: Fri, 10 Dec 2021 21:31:05 +0900 Subject: [PATCH 2/6] =?UTF-8?q?=E2=9C=A8[FEAT]=20imageView=EC=97=90=20UITa?= =?UTF-8?q?pGestureRecognizer=20=EC=97=B0=EA=B2=B0(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/HomeVC/HomeTableViewCell.xib | 2 +- 29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.xib b/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.xib index d98dd9a..90b978b 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.xib +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.xib @@ -17,7 +17,7 @@ - + diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift index 02721b4..f782e9a 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift @@ -7,7 +7,7 @@ import UIKit -class HomeVC: UIViewController { +class HomeVC: UIViewController, UIGestureRecognizerDelegate { @IBOutlet weak var storyCollectionView: UICollectionView! @IBOutlet weak var filterCollectionView: UICollectionView! @@ -74,9 +74,12 @@ extension HomeVC: UITableViewDataSource { guard let cell = tableView.dequeueReusableCell(withIdentifier: HomeTableViewCell.identifier) as? HomeTableViewCell else {return UITableViewCell()} let tapRecorgnizer = UITapGestureRecognizer(target: self, action: #selector(tapView(gestureRecognizer:))) - + cell.mainImageView.addGestureRecognizer(tapRecorgnizer) + tapRecorgnizer.delegate = self + + return cell } From 966edbf763b8467139a95a6f6cd71868d259cc70 Mon Sep 17 00:00:00 2001 From: beansBin Date: Fri, 10 Dec 2021 21:41:29 +0900 Subject: [PATCH 3/6] =?UTF-8?q?=E2=9E=95[ADD]=20HomeTapVC=20=EC=83=9D=20(#?= =?UTF-8?q?16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Storyboards/Base.lproj/Main.storyboard | 15 ++++++++++ .../Sources/HomeVC/HomeTableViewCell.swift | 4 +++ .../Sources/HomeVC/HomeTapVC.swift | 29 +++++++++++++++++++ .../Sources/HomeVC/HomeVC.swift | 11 ++----- .../project.pbxproj | 4 +++ 5 files changed, 54 insertions(+), 9 deletions(-) create mode 100644 29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift 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 */, From 375852fb564fb1d5d26747226ba4883ab46b21d8 Mon Sep 17 00:00:00 2001 From: beansBin Date: Fri, 10 Dec 2021 21:47:10 +0900 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=92=84[MOD]=20HomeTapView=20=EB=B7=B0?= =?UTF-8?q?=20=EA=B5=AC=EC=84=B1=20=EB=B0=8F=20=EC=98=A4=ED=86=A0=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=95=84=EC=9B=83=20(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Storyboards/Base.lproj/Main.storyboard | 52 +++++++++++++++++++ .../Sources/HomeVC/HomeTapVC.swift | 12 ----- 2 files changed, 52 insertions(+), 12 deletions(-) diff --git a/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard b/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard index c5d657c..b142c5b 100644 --- a/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard +++ b/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard @@ -346,8 +346,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -626,12 +676,14 @@ + + diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift index 9c40eef..1cc5f12 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift @@ -14,16 +14,4 @@ class HomeTapVC: UIViewController { // 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. - } - */ - } From 6ddd877d38d1949d2a3d94aec2fa18d4ba0a1f43 Mon Sep 17 00:00:00 2001 From: beansBin Date: Fri, 10 Dec 2021 22:01:39 +0900 Subject: [PATCH 5/6] =?UTF-8?q?=E2=9C=A8[FEAT]=20UITap=20=ED=99=94?= =?UTF-8?q?=EB=A9=B4=20=EC=A0=84=ED=99=98=20=EB=B0=8F=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=EB=84=98=EA=B8=B0=EA=B8=B0=20(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Resources/Storyboards/Base.lproj/Main.storyboard | 9 ++++++++- .../Sources/HomeVC/HomeTableViewCell.swift | 7 ++++++- 29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift | 5 +++++ .../SignInViewController/SignInViewController.swift | 2 -- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard b/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard index b142c5b..c6f8d35 100644 --- a/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard +++ b/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard @@ -342,7 +342,7 @@ - + @@ -399,6 +399,13 @@ + + + + + + + diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift index 638c0cf..00db193 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift @@ -31,7 +31,12 @@ class HomeTableViewCell: UITableViewCell { } @objc func tapView(gestureRecognizer: UIGestureRecognizer) { - +// guard let nextVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: HomeTapVC.identifier) as? HomeTapVC else { return } +// +// nextVC.imgView = self.mainImageView +// nextVC.titleLabel = self.titleLabel +// nextVC.subtitleLabel = self.subtitleLabel + print("##") } } diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift index 1cc5f12..a11ac89 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift @@ -8,7 +8,12 @@ import UIKit class HomeTapVC: UIViewController { + static let identifier = "HomeTapVC" + @IBOutlet weak var subtitleLabel: UILabel! + @IBOutlet weak var titleLabel: UILabel! + @IBOutlet weak var imgView: UIImageView! + override func viewDidLoad() { super.viewDidLoad() diff --git a/29th-assignment-YouTube/Sources/SignInViewController/SignInViewController.swift b/29th-assignment-YouTube/Sources/SignInViewController/SignInViewController.swift index 2806343..71df73f 100644 --- a/29th-assignment-YouTube/Sources/SignInViewController/SignInViewController.swift +++ b/29th-assignment-YouTube/Sources/SignInViewController/SignInViewController.swift @@ -25,8 +25,6 @@ class SignInViewController: UIViewController, UITextFieldDelegate { super.viewDidLoad() setUI() - - } // MARK: - Custom Method From 599b14a8b5dbd4332101a41be9c3941d38ce5a08 Mon Sep 17 00:00:00 2001 From: beansBin Date: Fri, 10 Dec 2021 22:28:13 +0900 Subject: [PATCH 6/6] =?UTF-8?q?=E2=9C=A8[FEAT]=20HomeTapVC=20dismiss=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84=20(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Storyboards/Base.lproj/Main.storyboard | 15 ++++++++++++--- .../Sources/HomeVC/HomeTableViewCell.swift | 11 +++-------- .../Sources/HomeVC/HomeTapVC.swift | 3 +++ .../Sources/HomeVC/HomeVC.swift | 14 +++++++++++++- 4 files changed, 31 insertions(+), 12 deletions(-) diff --git a/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard b/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard index c6f8d35..8d0bc77 100644 --- a/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard +++ b/29th-assignment-YouTube/Resources/Storyboards/Base.lproj/Main.storyboard @@ -381,35 +381,44 @@ + + + + - - - + diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift index 00db193..4ac90fd 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeTableViewCell.swift @@ -30,13 +30,8 @@ class HomeTableViewCell: UITableViewCell { // Configure the view for the selected state } - @objc func tapView(gestureRecognizer: UIGestureRecognizer) { -// guard let nextVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: HomeTapVC.identifier) as? HomeTapVC else { return } -// -// nextVC.imgView = self.mainImageView -// nextVC.titleLabel = self.titleLabel -// nextVC.subtitleLabel = self.subtitleLabel - print("##") - } + + + } diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift index a11ac89..85535c6 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeTapVC.swift @@ -19,4 +19,7 @@ class HomeTapVC: UIViewController { // Do any additional setup after loading the view. } + @IBAction func touchUpToBack(_ sender: Any) { + self.dismiss(animated: true, completion: nil) + } } diff --git a/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift b/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift index 60f75cc..180e056 100644 --- a/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift +++ b/29th-assignment-YouTube/Sources/HomeVC/HomeVC.swift @@ -72,13 +72,25 @@ 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(cell.tapView(gestureRecognizer:))) + let tapRecorgnizer = UITapGestureRecognizer(target: self, action: #selector(tapView(gestureRecognizer:))) cell.mainImageView.addGestureRecognizer(tapRecorgnizer) tapRecorgnizer.delegate = self return cell } + @objc func tapView(gestureRecognizer: UIGestureRecognizer) { + guard let nextVC = self.storyboard?.instantiateViewController(withIdentifier: HomeTapVC.identifier) as? HomeTapVC else { return } + + nextVC.modalPresentationStyle = .fullScreen + + present(nextVC, animated: true) { + nextVC.imgView.image = UIImage(named: "soptIOS") + nextVC.titleLabel.text = "1차 세미나 : iOS 컴포넌트 이해, XCode 기본 사용법, View 화면 전환" + nextVC.subtitleLabel.text = "WE SOPT ・조회수 100만회 ・ 3주 전" + + } + } }