From ffd20ab284b657f12594af410042c7794d1c393d Mon Sep 17 00:00:00 2001 From: YuJeong Date: Fri, 30 Aug 2024 20:31:54 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20MyPage=20WebVC=20=EB=A1=9C=20=EC=97=B0?= =?UTF-8?q?=EA=B2=B0=20(#44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PLUV/MyPage/MyPageViewController.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/PLUV/MyPage/MyPageViewController.swift b/PLUV/MyPage/MyPageViewController.swift index b99449a..395a1ee 100644 --- a/PLUV/MyPage/MyPageViewController.swift +++ b/PLUV/MyPage/MyPageViewController.swift @@ -105,6 +105,20 @@ class MyPageViewController: UIViewController { }) .disposed(by: disposeBag) + /// 아이템 선택 시 다음으로 넘어갈 VC에 정보 제공 + self.myPageTableView.rx.modelSelected(MyPageItem.self) + .observe(on: MainScheduler.instance) + .subscribe(onNext: { [weak self] myPageItem in + if myPageItem == .LogOut { + + } else { + let webVC = WebViewController() + webVC.urlString = myPageItem.url + self?.navigationController?.pushViewController(webVC, animated: true) + } + }) + .disposed(by: disposeBag) + /// TableView에 들어갈 Cell에 정보 제공 self.myPageItemList .observe(on: MainScheduler.instance)