Skip to content

Commit

Permalink
✨[FEAT] : #139 SNS 로그인 약관동의 뷰 띄우기
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Oct 18, 2021
1 parent ac62c4d commit bf0d8b1
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 16 deletions.
15 changes: 15 additions & 0 deletions ChaRo-iOS/ChaRo-iOS/Resource/Storyboards/SignScene/Join.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@
</objects>
<point key="canvasLocation" x="26" y="84"/>
</scene>
<!--JoinVC-->
<scene sceneID="bOe-eW-eLd">
<objects>
<viewController storyboardIdentifier="SNSJoinVC" id="Vcv-fS-fxT" customClass="SNSJoinVC" customModule="ChaRo_iOS" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="p8z-hz-5eH">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="VHp-0t-Gcr"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="XJs-D3-mDf" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="841" y="81"/>
</scene>
</scenes>
<resources>
<systemColor name="systemBackgroundColor">
Expand Down
14 changes: 13 additions & 1 deletion ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/SNSJoinVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,21 @@ import UIKit

class SNSJoinVC: UIViewController {

static let identifier = "SNSJoinVC"
var contractView = JoinContractView()

override func viewDidLoad() {
super.viewDidLoad()

configureUI()

}

private func configureUI() {
self.view.addSubview(contractView)
contractView.snp.makeConstraints {
$0.top.equalToSuperview().offset(200)
$0.bottom.leading.trailing.equalToSuperview()
}

}

Expand Down
41 changes: 26 additions & 15 deletions ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/SNSLoginVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,23 +167,34 @@ class SNSLoginVC: UIViewController {
}

func snsJoin() {
switch snsType {
case "A":
print(snsType)

break

case "G":
print(snsType)
break

let storyboard = UIStoryboard(name: "Join", bundle: nil)
let nextVC = storyboard.instantiateViewController(withIdentifier: SNSJoinVC.identifier) as? SNSJoinVC
//nextVC?.modalPresentationStyle = .fullScreen
//self.present(nextVC!, animated: true, completion: nil)
self.navigationController?.pushViewController(nextVC!, animated: true)

case "K":
print(snsType)
break
nextVC?.contractView.nextButton.nextPageClosure = {
switch self.snsType {
case "A":
print(self.snsType)
print("여기서 애플 회원가입 api 날리기")
break

case "G":

break

case "K":

break

default:
print(self.snsType)
break
}

default:
print(snsType)
break
self.navigationController?.popViewController(animated: true)
}
}

Expand Down

0 comments on commit bf0d8b1

Please sign in to comment.