-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Feat: #29 - 회원가입 완료 페이지 이동 및, 화면전환
- Loading branch information
Showing
10 changed files
with
228 additions
and
17 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
CMC/Resources/Assets.xcassets/Components/24x24/24x24dropDown.imageset/Contents 2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "24x24dropDown.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
CMC/Resources/Assets.xcassets/SignUpCompleted.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Group 1171275642.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "Group [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "Group [email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+160 KB
CMC/Resources/Assets.xcassets/SignUpCompleted.imageset/Group 1171275642.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+716 KB
CMC/Resources/Assets.xcassets/SignUpCompleted.imageset/Group [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.55 MB
CMC/Resources/Assets.xcassets/SignUpCompleted.imageset/Group [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
CMC/Sources/Presenter/Auth/SignUp/SignUpCompletedViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// | ||
// SignUpCompletedViewController.swift | ||
// CMC | ||
// | ||
// Created by Siri on 11/15/23. | ||
// Copyright © 2023 com.softsquared.cmc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import RxCocoa | ||
import RxSwift | ||
|
||
import DesignSystem | ||
import SnapKit | ||
|
||
import UIKit | ||
|
||
class SignUpCompletedViewController: BaseViewController { | ||
|
||
// MARK: - UI | ||
private lazy var signUpCompletedLabel: UILabel = { | ||
let label = UILabel() | ||
label.text = "회원가입 신청이\n완료되었어요!" | ||
label.font = CMCFontFamily.Pretendard.bold.font(size: 26) | ||
label.textColor = CMCAsset.gray50.color | ||
label.numberOfLines = 2 | ||
return label | ||
}() | ||
|
||
private lazy var signUpCompletedSubLabel: UILabel = { | ||
let label = UILabel() | ||
label.text = "신청이 수락될 때까지 조금만 기다려주세요 :)" | ||
label.font = CMCFontFamily.Pretendard.medium.font(size: 14) | ||
label.textColor = CMCAsset.gray700.color | ||
return label | ||
}() | ||
|
||
private lazy var signUpCompletedImageView: UIImageView = { | ||
let imageView = UIImageView() | ||
imageView.image = CMCAsset.signUpCompleted.image | ||
imageView.contentMode = .scaleAspectFit | ||
return imageView | ||
}() | ||
|
||
private lazy var completedButton: CMCButton = { | ||
let button = CMCButton( | ||
isRound: false, | ||
type: .login(.inactive), | ||
title: "확인" | ||
) | ||
return button | ||
}() | ||
|
||
// MARK: - Properties | ||
private let viewModel: SignUpCompletedViewModel | ||
|
||
// MARK: - Initializers | ||
init( | ||
viewModel: SignUpCompletedViewModel | ||
) { | ||
self.viewModel = viewModel | ||
super.init() | ||
} | ||
|
||
// MARK: - LifeCycle | ||
|
||
// MARK: - Methods | ||
|
||
|
||
override func setAddSubView() { | ||
self.view.addSubview(self.signUpCompletedLabel) | ||
self.view.addSubview(self.signUpCompletedSubLabel) | ||
self.view.addSubview(self.signUpCompletedImageView) | ||
self.view.addSubview(self.completedButton) | ||
} | ||
|
||
override func setConstraint() { | ||
self.signUpCompletedLabel.snp.makeConstraints { make in | ||
make.top.equalTo(self.view.safeAreaLayoutGuide.snp.top).offset(100) | ||
make.leading.equalToSuperview().offset(24) | ||
} | ||
|
||
self.signUpCompletedSubLabel.snp.makeConstraints { make in | ||
make.top.equalTo(self.signUpCompletedLabel.snp.bottom).offset(15) | ||
make.leading.equalTo(self.signUpCompletedLabel.snp.leading) | ||
} | ||
|
||
self.signUpCompletedImageView.snp.makeConstraints { make in | ||
make.top.equalTo(self.signUpCompletedSubLabel.snp.bottom).offset(40) | ||
make.centerX.equalToSuperview() | ||
make.width.equalTo(200) | ||
make.height.equalTo(200) | ||
} | ||
|
||
self.completedButton.snp.makeConstraints { make in | ||
make.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom).offset(-20) | ||
make.leading.equalToSuperview().offset(20) | ||
make.trailing.equalToSuperview().offset(-20) | ||
make.height.equalTo(56) | ||
} | ||
} | ||
|
||
override func bind() { | ||
let input = SignUpCompletedViewModel.Input(completedBtnTapped: completedButton.rx.tap.asObservable()) | ||
let _ = viewModel.transform(input: input) | ||
} | ||
|
||
} |
49 changes: 49 additions & 0 deletions
49
CMC/Sources/Presenter/Auth/SignUp/SignUpCompletedViewModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// SignUpCompletedViewModel.swift | ||
// CMC | ||
// | ||
// Created by Siri on 11/15/23. | ||
// Copyright © 2023 com.softsquared.cmc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import RxCocoa | ||
import RxSwift | ||
|
||
import UIKit | ||
|
||
final class SignUpCompletedViewModel: ViewModelType { | ||
|
||
struct Input { | ||
let completedBtnTapped: Observable<Void> | ||
} | ||
|
||
struct Output { | ||
|
||
} | ||
|
||
var disposeBag: DisposeBag = DisposeBag() | ||
weak var coordinator: AuthCoordinator? | ||
|
||
// MARK: - Initializers | ||
init( | ||
coordinator: AuthCoordinator? | ||
) { | ||
self.coordinator = coordinator | ||
} | ||
|
||
func transform(input: Input) -> Output { | ||
input.completedBtnTapped | ||
.withUnretained(self) | ||
.subscribe(onNext: { owner, _ in | ||
owner.coordinator?.dismissViewController { | ||
owner.coordinator?.popViewController() | ||
} | ||
}) | ||
.disposed(by: disposeBag) | ||
|
||
return Output() | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters