Skip to content

Commit

Permalink
fix/#388 ReadyStatusViewController, TradyViewController 개행 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
youz2me committed Sep 15, 2024
1 parent dcc1859 commit 918f77c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,14 @@ class ReadyStatusViewController: BaseViewController {

// MARK: - LifeCycle

init(
viewModel: PromiseViewModel
) {
init(viewModel: PromiseViewModel) {
self.viewModel = viewModel

super.init(
nibName: nil,
bundle: nil
)
super.init(nibName: nil, bundle: nil)
}

required init?(
coder: NSCoder
) {
fatalError(
"init(coder:) has not been implemented"
)
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func loadView() {
Expand All @@ -51,12 +42,8 @@ class ReadyStatusViewController: BaseViewController {
setupBinding()
}

override func viewWillAppear(
_ animated: Bool
) {
super.viewWillAppear(
animated
)
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
}

override func viewDidLayoutSubviews() {
Expand All @@ -74,38 +61,28 @@ class ReadyStatusViewController: BaseViewController {
override func setupAction() {
rootView.myReadyStatusProgressView.readyStartButton.addTarget(
self,
action: #selector(
readyStartButtonDidTap
),
action: #selector(readyStartButtonDidTap),
for: .touchUpInside
)
rootView.myReadyStatusProgressView.moveStartButton.addTarget(
self,
action: #selector(
moveStartButtonDidTap
),
action: #selector(moveStartButtonDidTap),
for: .touchUpInside
)
rootView.myReadyStatusProgressView.arrivalButton.addTarget(
self,
action: #selector(
arrivalButtonDidTap
),
action: #selector(arrivalButtonDidTap),
for: .touchUpInside
)
rootView.readyPlanInfoView.editButton.addTarget(
self,
action: #selector(
editReadyButtonDidTap
),
action: #selector(editReadyButtonDidTap),
for: .touchUpInside
)
rootView.enterReadyButtonView.addGestureRecognizer(
UITapGestureRecognizer(
target: self,
action: #selector(
enterReadyButtonDidTap
)
action: #selector(enterReadyButtonDidTap)
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,14 @@ class TardyViewController: BaseViewController {

// MARK: - LifeCycle

init(
viewModel: PromiseViewModel
) {
init(viewModel: PromiseViewModel) {
self.viewModel = viewModel

super.init(
nibName: nil,
bundle: nil
)
super.init(nibName: nil, bundle: nil)
}

required init?(
coder: NSCoder
) {
fatalError(
"init(coder:) has not been implemented"
)
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func viewDidLoad() {
Expand All @@ -44,12 +35,8 @@ class TardyViewController: BaseViewController {
setupBinding()
}

override func viewWillAppear(
_ animated: Bool
) {
super.viewWillAppear(
animated
)
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

viewModel.fetchTardyInfo()
}
Expand All @@ -58,15 +45,9 @@ class TardyViewController: BaseViewController {
// MARK: - Setup

override func setupView() {
view.addSubviews(
arriveView,
tardyView
)
view.addSubviews(arriveView, tardyView)

[
arriveView,
tardyView
].forEach {
[arriveView, tardyView].forEach {
$0.snp.makeConstraints {
$0.edges.equalToSuperview()
}
Expand Down

0 comments on commit 918f77c

Please sign in to comment.