Skip to content

Commit

Permalink
πŸ’„[MOD] : #139 μ»€μŠ€ν…€ λ„€λΉ„κ²Œμ΄μ…˜ λ°” 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Sep 25, 2021
1 parent 6f2a077 commit 745acac
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/JoinVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ class JoinVC: UIViewController {
$0.clearButtonMode = .whileEditing
}

var nextButton = UIButton().then {
$0.setTitle("λ‹€μŒ", for: .normal)
$0.backgroundColor = .gray30
$0.setTitleColor(.white, for: .normal)
$0.clipsToBounds = true
$0.layer.cornerRadius = 10
}

lazy var navBar = UINavigationBar().then {
$0.frame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: 102)
$0.backgroundColor = UIColor.white
$0.layer.borderWidth = 1
$0.layer.borderColor = UIColor.gray20.cgColor
}

var EmailView = UIView().then {
$0.backgroundColor = .white
Expand All @@ -60,17 +74,18 @@ class JoinVC: UIViewController {
super.viewDidLoad()
setupCollectionView()
configureUI()
self.view.addSubview(navBar)
}

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


//MARK: - private func
private func configureNavigationConrtroller() {
self.navigationController?.setNavigationBarHidden(false, animated: true)
//λ„€λΉ„κ²Œμ΄μ…˜ λ°” λ‚˜νƒ€λ‚˜κ²Œ ν•˜κΈ°
private func configureNavigationController() {
self.navigationController?.setNavigationBarHidden(true, animated: true)
//λ„€λΉ„κ²Œμ΄μ…˜ λ°” 숨기기
}

private func setupCollectionView() {
Expand Down Expand Up @@ -103,6 +118,7 @@ class JoinVC: UIViewController {
EmailView.addSubview(upperLabel)
EmailView.addSubview(upperSubLabel)
EmailView.addSubview(upperTextField)
EmailView.addSubview(nextButton)

upperLabel.snp.makeConstraints {
$0.top.equalToSuperview()
Expand All @@ -121,6 +137,12 @@ class JoinVC: UIViewController {
$0.height.equalTo(48)
}

nextButton.snp.makeConstraints {
$0.bottom.equalToSuperview().offset(-75)
$0.leading.trailing.equalTo(upperLabel)
$0.height.equalTo(48)
}

EmailView.dismissKeyboardWhenTappedAround()
}

Expand Down

0 comments on commit 745acac

Please sign in to comment.