Skip to content

Commit

Permalink
[feat] MyPage WebVC 로 연결 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
BAEKYUJEONG committed Aug 30, 2024
1 parent 90880f0 commit ffd20ab
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions PLUV/MyPage/MyPageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ffd20ab

Please sign in to comment.