Skip to content

Commit

Permalink
✨[FEAT] : #139 이메일 회원가입까지 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Sep 14, 2021
1 parent d453f0c commit 9f22485
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17150" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17122"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<!--JoinVC-->
<scene sceneID="s0d-6b-0kx">
<objects>
<viewController id="Y6W-OH-hqX" sceneMemberID="viewController">
<viewController storyboardIdentifier="JoinVC" id="Y6W-OH-hqX" customClass="JoinVC" customModule="ChaRo_iOS" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="5EZ-qb-Rvc">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
Expand All @@ -20,6 +21,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="26" y="84"/>
</scene>
</scenes>
<resources>
Expand Down
11 changes: 11 additions & 0 deletions ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/JoinVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,22 @@ import UIKit

class JoinVC: UIViewController {

static let identifier = "JoinVC"

override func viewDidLoad() {
super.viewDidLoad()

}

override func viewWillAppear(_ animated: Bool) {
configureNavigationConrtroller()
}

private func configureNavigationConrtroller() {
self.navigationController?.setNavigationBarHidden(false, animated: true)
//타이틀 지정해주기
}




Expand Down
36 changes: 4 additions & 32 deletions ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/LoginVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ class LoginVC: UIViewController {
setNotificationCenter()
}


override func viewDidDisappear(_ animated: Bool) {
removeObservers()
}

override func viewWillAppear(_ animated: Bool) {
self.navigationController?.setNavigationBarHidden(true, animated: false)
}


func setLoginButtonUI() {
titleLabel.font = .notoSansMediumFont(ofSize: 17)
Expand Down Expand Up @@ -148,37 +151,6 @@ extension LoginVC {
}


// view.addSubview(CharoimageView)
// view.addSubview(idBackground)
// view.addSubview(pwdBackground)
//
// view.addSubviews([CharoimageView,
// idBackground,
// pwdBackground,
// idTextField,
// pwdTextField,
// joinButton])
//
// CharoimageView.snp.makeConstraints {
// $0.top.leading.trailing.equalToSuperview()
// $0.height.equalTo(464 * factor)
// }
//
// idBackground.snp.makeConstraints {
// $0.top.equalTo(CharoimageView.snp.bottom).offset(13)
// $0.leading.equalToSuperview().offset(14)
// $0.trailing.equalToSuperview().offset(-10)
// $0.height.equalTo(64)
// }
//
// idBackground.snp.makeConstraints {
// $0.top.equalTo(idBackground.snp.bottom).offset(-5)
// $0.leading.equalToSuperview().offset(14)
// $0.trailing.equalToSuperview().offset(-10)
// $0.height.equalTo(64)
// }





Expand Down
12 changes: 11 additions & 1 deletion ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/SNSLoginVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ class SNSLoginVC: UIViewController {

}

override func viewWillAppear(_ animated: Bool) {
self.navigationController?.setNavigationBarHidden(true, animated: false)
}



let lookAroundBtn = UIButton().then {
$0.setTitle("둘러보기", for: .normal)
$0.titleLabel?.font = .notoSansMediumFont(ofSize: 14)
Expand Down Expand Up @@ -87,6 +93,7 @@ class SNSLoginVC: UIViewController {
$0.setTitle("이메일로 가입", for: .normal)
$0.setTitleColor(.gray30, for: .normal)
$0.titleLabel?.font = UIFont.notoSansMediumFont(ofSize: 14)
$0.addTarget(self, action: #selector(goToEmailJoinVC), for: .touchUpInside)
}


Expand All @@ -95,9 +102,12 @@ class SNSLoginVC: UIViewController {
let vc = storyboard.instantiateViewController(withIdentifier: LoginVC.identifier)
self.navigationController?.pushViewController(vc, animated: true)
}


@objc func goToEmailJoinVC() {

let storyboard = UIStoryboard(name: "Join", bundle: nil)
let vc = storyboard.instantiateViewController(withIdentifier: JoinVC.identifier)
self.navigationController?.pushViewController(vc, animated: true)
}

private func configureNavigationController() {
Expand Down

0 comments on commit 9f22485

Please sign in to comment.