From fa074d59e7234f9efa52ed13e64553e4a0087e39 Mon Sep 17 00:00:00 2001 From: dlwogus0128 <79050615+dlwogus0128@users.noreply.github.com> Date: Thu, 18 May 2023 01:13:30 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20#144=20-=20=EC=84=A4=EC=A0=95=5F?= =?UTF-8?q?=EC=9D=B4=EC=9A=A9=EC=95=BD=EA=B4=80=20=EB=B2=84=ED=8A=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 이용약관 노션 연결 --- Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj | 4 ---- .../Presentation/MyPage/VC/SettingVC/SettingVC.swift | 10 ++++------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj b/Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj index 221ebe7a..7f49dd13 100644 --- a/Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj +++ b/Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj @@ -19,7 +19,6 @@ A3BC2F4129667A0D00198261 /* NicknameEditorVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3BC2F4029667A0D00198261 /* NicknameEditorVC.swift */; }; A3BC2F432966A93100198261 /* CourseDetailVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3BC2F422966A93100198261 /* CourseDetailVC.swift */; }; A3C2CACE29E313CC00EC525B /* SettingVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C2CACD29E313CC00EC525B /* SettingVC.swift */; }; - A3C2CAD329E4F77C00EC525B /* TermsOfServiceVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C2CAD229E4F77C00EC525B /* TermsOfServiceVC.swift */; }; A3C2CAD529E4F85400EC525B /* PersonalInfoVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C2CAD429E4F85400EC525B /* PersonalInfoVC.swift */; }; A3C2CAD729E53B2900EC525B /* RNAlertVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C2CAD629E53B2900EC525B /* RNAlertVC.swift */; }; A3C38FED2A13212300FF196D /* SetInfoLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C38FEC2A13212300FF196D /* SetInfoLayout.swift */; }; @@ -174,7 +173,6 @@ A3BC2F4029667A0D00198261 /* NicknameEditorVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NicknameEditorVC.swift; sourceTree = ""; }; A3BC2F422966A93100198261 /* CourseDetailVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CourseDetailVC.swift; sourceTree = ""; }; A3C2CACD29E313CC00EC525B /* SettingVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingVC.swift; sourceTree = ""; }; - A3C2CAD229E4F77C00EC525B /* TermsOfServiceVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TermsOfServiceVC.swift; sourceTree = ""; }; A3C2CAD429E4F85400EC525B /* PersonalInfoVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersonalInfoVC.swift; sourceTree = ""; }; A3C2CAD629E53B2900EC525B /* RNAlertVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RNAlertVC.swift; sourceTree = ""; }; A3C38FEC2A13212300FF196D /* SetInfoLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetInfoLayout.swift; sourceTree = ""; }; @@ -401,7 +399,6 @@ isa = PBXGroup; children = ( A3C2CACD29E313CC00EC525B /* SettingVC.swift */, - A3C2CAD229E4F77C00EC525B /* TermsOfServiceVC.swift */, A3C2CAD429E4F85400EC525B /* PersonalInfoVC.swift */, ); path = SettingVC; @@ -1372,7 +1369,6 @@ A3DB8C472A0B64830081AF2D /* ActivityRecordDetailVC.swift in Sources */, CE14677C2965C1B100DCEA1B /* RunningRecordVC.swift in Sources */, CE6B63D829673450003F900F /* ListEmptyView.swift in Sources */, - A3C2CAD329E4F77C00EC525B /* TermsOfServiceVC.swift in Sources */, CE6655F6295D90B600C64E12 /* addToolBar.swift in Sources */, A3C2CAD529E4F85400EC525B /* PersonalInfoVC.swift in Sources */, DAD5A3DA296C6DA500C8166B /* TitleCollectionViewCell.swift in Sources */, diff --git a/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/SettingVC/SettingVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/SettingVC/SettingVC.swift index 5aa478e6..f2771c06 100644 --- a/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/SettingVC/SettingVC.swift +++ b/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/SettingVC/SettingVC.swift @@ -26,6 +26,9 @@ final class SettingVC: UIViewController { let reportUrl = NSURL(string: "https://docs.google.com/forms/d/e/1FAIpQLSek2rkClKfGaz1zwTEHX3Oojbq_pbF3ifPYMYezBU0_pe-_Tg/viewform") lazy var reportSafariView: SFSafariViewController = SFSafariViewController(url: self.reportUrl! as URL) + let termsOfServiceUrl = NSURL(string: "https://www.notion.so/Runnect-81cf5a3a507b40e4b6104b5d08f12792?pvs=4") + lazy var termsOfServiceSafariView: SFSafariViewController = SFSafariViewController(url: self.termsOfServiceUrl! as URL) + private lazy var personalInfoView = makeInfoView(title: "계정 정보").then { let tap = UITapGestureRecognizer(target: self, action: #selector(self.touchUpPersonalInfoView)) $0.addGestureRecognizer(tap) @@ -90,11 +93,6 @@ extension SettingVC { personalInfoVC.email = self.email self.navigationController?.pushViewController(personalInfoVC, animated: true) } - - private func pushToTermsOfServiceVC() { - let termsOfServiceVC = TermsOfServiceVC() - self.navigationController?.pushViewController(termsOfServiceVC, animated: true) - } } // MARK: - @objc Function @@ -112,7 +110,7 @@ extension SettingVC { @objc private func touchUpTermsOfServiceView() { - pushToTermsOfServiceVC() + self.present(self.termsOfServiceSafariView, animated: true, completion: nil) } }