Skip to content

Commit

Permalink
[Fix] Runnect#144 - 설정_이용약관 버튼
Browse files Browse the repository at this point in the history
이용약관 노션 연결
  • Loading branch information
dlwogus0128 committed May 17, 2023
1 parent ffe04dd commit fa074d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -174,7 +173,6 @@
A3BC2F4029667A0D00198261 /* NicknameEditorVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NicknameEditorVC.swift; sourceTree = "<group>"; };
A3BC2F422966A93100198261 /* CourseDetailVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CourseDetailVC.swift; sourceTree = "<group>"; };
A3C2CACD29E313CC00EC525B /* SettingVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingVC.swift; sourceTree = "<group>"; };
A3C2CAD229E4F77C00EC525B /* TermsOfServiceVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TermsOfServiceVC.swift; sourceTree = "<group>"; };
A3C2CAD429E4F85400EC525B /* PersonalInfoVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersonalInfoVC.swift; sourceTree = "<group>"; };
A3C2CAD629E53B2900EC525B /* RNAlertVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RNAlertVC.swift; sourceTree = "<group>"; };
A3C38FEC2A13212300FF196D /* SetInfoLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetInfoLayout.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -401,7 +399,6 @@
isa = PBXGroup;
children = (
A3C2CACD29E313CC00EC525B /* SettingVC.swift */,
A3C2CAD229E4F77C00EC525B /* TermsOfServiceVC.swift */,
A3C2CAD429E4F85400EC525B /* PersonalInfoVC.swift */,
);
path = SettingVC;
Expand Down Expand Up @@ -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 */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -112,7 +110,7 @@ extension SettingVC {

@objc
private func touchUpTermsOfServiceView() {
pushToTermsOfServiceVC()
self.present(self.termsOfServiceSafariView, animated: true, completion: nil)
}
}

Expand Down

0 comments on commit fa074d5

Please sign in to comment.