Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SnapKit
import EATSSUDesign

/// "만든 사람들"을 담고 있는 View 입니다.
/// - Note: 현재는 노션 페이지로 대체되어 사용하지 않습니다. 추후 복구 가능성을 위해 남겨둡니다.
class CreatorsView: BaseUIView {
// MARK: - UI Components

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ final class ProvisionView: BaseUIView {
connectWebLink(agreementType: agreementType)
}

init(url: URL) {
webView = WKWebView(frame: .zero, configuration: WKWebViewConfiguration())
super.init(frame: .zero)

webView.load(URLRequest(url: url))
}

// MARK: - Functions

override func configureUI() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import SnapKit

import EATSSUDesign

/// "만든 사람들" 화면 ViewController.
/// - Note: 현재는 노션 페이지로 대체되어 사용하지 않습니다. 추후 복구 가능성을 위해 남겨둡니다.
class CreatorViewController: BaseViewController {
override var shouldHideTabBar: Bool { true }
// MARK: - Properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import SnapKit
final class MyPageViewController: BaseViewController {
// MARK: - Properties

private enum URLConstants {
static let creatorsNotion = "https://eat-ssu.notion.site/1d2eeef75a16814db1e5c5abaf40cf6a"
}

private var nickName = ""
private var switchState = false
private let myPageTableLabelList = MyPageLocalData.myPageTableLabelList
Expand Down Expand Up @@ -234,11 +238,14 @@ extension MyPageViewController: UITableViewDelegate {
provisionViewController.navigationTitle = TextLiteral.MyPage.privacyTermsOfUse
navigationController?.pushViewController(provisionViewController, animated: true)

// "만든사람들" 스크린으로 이동
// "만든사람들" 노션 페이지로 이동 (앱 내 웹뷰)
case MyPageLabels.Creator.rawValue:
AnalyticsService.logEvent("click_mypage_menu", parameters: ["menu": "creator"])
let creatorViewController = CreatorViewController()
navigationController?.pushViewController(creatorViewController, animated: true)
if let creatorsURL = URL(string: URLConstants.creatorsNotion) {
let creatorsWebVC = ProvisionViewController(url: creatorsURL)
creatorsWebVC.navigationTitle = TextLiteral.MyPage.creators
navigationController?.pushViewController(creatorsWebVC, animated: true)
}

// "로그아웃" 팝업알림 표시
case MyPageLabels.Logout.rawValue:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ final class ProvisionViewController: BaseViewController {
super.init(nibName: nil, bundle: nil)
}

init(url: URL) {
Comment thread
Hrepay marked this conversation as resolved.
provisionView = ProvisionView(url: url)

super.init(nibName: nil, bundle: nil)
}

override func viewDidLoad() {
super.viewDidLoad()

Expand Down